Page 1 of 1

Some SENSOR questions

Posted: Thu Nov 19, 2015 11:54 pm
by mbolivar0
Hello all,

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

Re: Some SENSOR questions

Posted: Wed Nov 25, 2015 4:38 pm
by mstempin
Hi Miguel,

I am not the SENSOR specialist, but I can answer question #4: the TD_SGIFOX_Send() function is just sending the actual bytes you provided and not procesed by sensor (you can only see it in the "Raw" tab in the Dashboard), whereas the TD_SENSOR_SendRaw() function prefix them with a 2-byte Sensor header so the frame is processed by SENSOR and can be seen in the normal tab in the Dashboard.

Re: Some SENSOR questions

Posted: Tue Dec 01, 2015 2:22 pm
by mbolivar0
Hi mstempin,

Thank you for the answer. I will wait to see if anyone knows the answer for the first 3 questions.

Regards,

Miguel