What the second item down on your link?
https://www.thethingsindustries.com/docs/reference/data-formats/#uplink-messages
What the second item down on your link?
https://www.thethingsindustries.com/docs/reference/data-formats/#uplink-messages
yes i know, but for example: where can i see that if frame_counter is 0 that the key âf_cntâ is not present?
You canât but if you search the forum, youâll find that it was it was me that discovered this and youâll find out why. But basically, if a field is not there, itâs zero or null or empty.
nice, thank you for info. all is working, but was just curious. pavel
Yes and the receiving party has to figure which of those applies Not sound API design in my book.
Agreed, raised this on GitHub and on here months ago. For some reason itâs viewed as breaking the API if they include the field - which it wouldnât because we have to code for checking if the field is there and if it isnât, assume itâs zero. If the field is there and is zero, weâd pick up the value - so no real chance of breaking the API really.
But what would I know, Iâve only been coding 40+ years, Z80 assembly on TRS-80 II, Commodore Pet, BBC Micro, Dragon 32, Sinclair QL using Forth, Mac Plus (which still runs but I canât find my 20MB SCSI HD, somewhere I still have my Inside Macintosh docs) after that it seems to go down hill with Windows 3.1 and some upstart in Finland usurping my use of Minix on my Amstrad PC that then ran Novell Netware 386 with IBM DB2 as an add-on âŚ
I tell Johan Iâve got the T Shirtâs - over the weekend I ended up wearing one I got from Apple 28 years ago, bit tattered but still viable. Not that Iâm not getting old âŚ