Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom message type decoding grammar for WeatherMonitor? #11

Open
misosec opened this issue Mar 9, 2019 · 1 comment
Open

Custom message type decoding grammar for WeatherMonitor? #11

misosec opened this issue Mar 9, 2019 · 1 comment
Labels
topic: documentation Related to documentation for the project

Comments

@misosec
Copy link

misosec commented Mar 9, 2019

Hello,
what is the correct format of custom message type decoding grammar for WeatherMonitor sketch?

Thank you.

@facchinm
Copy link
Contributor

The data format in the sketch is

typedef struct __attribute__ ((packed)) sigfox_message {
uint8_t status;
int16_t moduleTemperature;
int16_t bmpTemperature;
uint16_t bmpPressure;
uint16_t htuHumidity;
uint16_t tlsLight;
uint8_t lastMessageStatus;
} SigfoxMessage;

which maps to a sigfox decoder like

status::uint:8 temperature::int:16 temperatureExt::int:16 pressure::uint:16  humidity::uint:16  light::uint:16 lastMsg::uint:8

@per1234 per1234 added the topic: documentation Related to documentation for the project label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project
Projects
None yet
Development

No branches or pull requests

3 participants