You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SensorGSM | 1 | Send SMS through an attached serial modem (e.g. SIM900) | -
154
155
155
156
Those sensors requiring a pin to operate would take it as an argument in the constructor.
156
157
NodeManager automatically creates all the child_ids, assigning an incremental counter. If you need to set your own child_id, pass it as the last argument to the constructor
@@ -977,6 +978,16 @@ Each sensor class may expose additional methods.
977
978
bool getCodeIsValid();
978
979
~~~
979
980
981
+
* SensorGSM
982
+
~~~c
983
+
// set the baud rate of the serial port for connecting to the sensor (default: 115200)
984
+
voidsetBaudRate(uint32_t value);
985
+
// [101] set the recipient phone number
986
+
void setRecipient(const char* value);
987
+
// send the provided text via SMS to the configured recipient
988
+
void sendSMS(const char* text);
989
+
~~~
990
+
980
991
### OTA Configuration
981
992
982
993
When `NODEMANAGER_OTA_CONFIGURATION` is set to ON the API presented above can be also called remotely through `SensorConfiguration`, which is automatically added to NodeManager. SensorConfiguration exposes by default child id 200 that can be used to interact with the service by sending `V_CUSTOM` type of messages and commands within the payload. For each `REQ` message, the node will respond with a `SET` message if successful.
0 commit comments