Is there any way to divide the sent data by 100?
I use Sigfox.and I have sent data as int16_t.
divide the sent data by 100
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- eherrada
- Posts: 161
- Joined: Thu Jan 04, 2018 4:59 pm
Re: divide the sent data by 100
I don't think so, although I may be completely wrong. If I were you I'd just divide it by 100 before you send it.
- sj_remington
- Posts: 1021
- Joined: Mon Jul 27, 2020 4:51 pm
-
- Posts: 87
- Joined: Sun Sep 29, 2019 12:30 am
Re: divide the sent data by 100
Thank you for your replies.
In some platforms allow dividing/100 or do some coding on their platform to decode the data (especially if you using Lora and Sigfox).
In some platforms allow dividing/100 or do some coding on their platform to decode the data (especially if you using Lora and Sigfox).
- brubell
- Learn User Page
- Posts: 2017
- Joined: Fri Jul 17, 2015 10:33 pm
Re: divide the sent data by 100
Yep - platforms like TheThingsNetwork allow a device to encode data prior to sending to the platform, and then the platform provides a scriptable decoder to handle decoding. Adafruit IO does not implement a decoder, the value field must be processed before it is sent to IO.weal wrote:Thank you for your replies.
In some platforms allow dividing/100 or do some coding on their platform to decode the data (especially if you using Lora and Sigfox).
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.