json API

Post Reply
User avatar
PH0DV
Posts: 99
Joined: Sat Sep 17, 2016 10:33 am
Location: JO22PH
Contact:

json API

Post by PH0DV » Tue Jul 03, 2018 6:46 pm

Just a question regarding the API. On Github the respons of status.cgi for callinfo is:

"callinfo": [{"9","2161005",0}, {"9","2161005",1032}]

In wireshark:

"callinfo": [["", "N2STC DMR ID: 1136394", 128]]

Why is this different formatted with double square brackets [[]] ?

73's
PH0DV
Dick
PH0DV - Dick Vos - JO220PH - Huizen - Netherlands - http://www.ph0dv.nl

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 3144
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: json API

Post by HA2NON » Wed Jul 04, 2018 6:22 am

It's fixed now in the API description, thanks for pointing it out.
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

kd4ppg
Posts: 21
Joined: Sun Jun 10, 2018 8:59 pm

Re: json API

Post by kd4ppg » Fri Jul 06, 2018 8:16 pm

On the subject of the API, I'm back to working with it again...

I've found in modempacket.cgi that you can post with sync_word_count, sync_word1, sync_word2... Mine responded with a sync_word3 as well, prompting me to think that the sync_word_count might be able to be greater than 3. Is there an actual limit?

Thanks,
jim

User avatar
HA2NON
SharkRF team
SharkRF team
Posts: 3144
Joined: Fri Mar 25, 2016 3:33 pm
Contact:

Re: json API

Post by HA2NON » Fri Jul 06, 2018 8:56 pm

You can set 4 sync words.
Norbert "Nonoo" Varga, HA2NON
SharkRF Team

Post Reply