I am currently playing with the SENSOR module and I have a few doubts that I hope you can answer:
1. How can I know whether a module is already registered in the SENSOR platform? I would like to know in order to put something like the following in the TD_USER_Setup():
- Code: Select all
if (!isModuleRegistered()) TD_SENSOR_SendRegister();
2. How can I know the device class I should use in the function TD_SENSOR_SetDeviceClass()? Now I am using 0x0001 because I have seen it in the examples and it works, but I would like to understand why I am using this value.
3. Is it possible to send an email just like there is a function to send an SMS? I know I can send an email from my own server using the callback URL and some lines of PHP, but it would be useful if it was not needed.
4. Finally, what is the difference between sending a message with the SENSOR module or the RF module? If I want to send a RAW message, what is the difference between the two lines in the following code?
- Code: Select all
// Using SENSOR module
TD_SENSOR_SendRaw((uint8_t*)"hello", 5);
// Using RF module
TD_SIGFOX_Send((uint8_t*)"hello", 5, 2);
I apologize if these are a lot of questions, but I would like to fully understand what I am doing.
Thanks in advanced,
Miguel