![]() |
Arduino NBduino Library
|
Public Member Functions | |
NBduino () | |
NBduino (const String mqttServer, const int mqttPort, const String mqttUser, const String mqttPassword) | |
NBduino (const String mqttServer, const int mqttPort, const String mqttUser, const String mqttPassword, unsigned long timeToConn) | |
setAPN (String APN) | |
bool | begin () |
wakeup () | |
sleep () | |
String | reqIMEI () |
publish (const String topic, const String value) | |
Definition at line 17 of file NBduinoLibrary.h.
NBduino::NBduino | ( | ) |
This method is the constructor of the NBduuino
Definition at line 22 of file NBduinoLibrary.cpp.
NBduino::NBduino | ( | const String | mqttServer, |
const int | mqttPort, | ||
const String | mqttUser, | ||
const String | mqttPassword | ||
) |
This method is the constructor of the NBduuino
mqttServer | The name or the IP address of the MQTT broker (String) |
mqttPort | The port number of the MQTT broker (Int) |
mqttUser | The username enabeled to access the MQTT broker (String) |
mqttPassword | The password to autenticate the userto access the MQTT broker (String) |
Definition at line 35 of file NBduinoLibrary.cpp.
NBduino::NBduino | ( | const String | mqttServer, |
const int | mqttPort, | ||
const String | mqttUser, | ||
const String | mqttPassword, | ||
unsigned long | timeToConn | ||
) |
This method is the constructor of the NBduuino
mqttServer | The name or the IP address of the MQTT broker (String) |
mqttPort | The port number of the MQTT broker (Int) |
mqttUser | The username enabeled to access the MQTT broker (String) |
mqttPassword | The password to autenticate the userto access the MQTT broker (String) |
timeToConn | The timeout in ms in connection phase (unsigned long) |
Definition at line 54 of file NBduinoLibrary.cpp.
bool NBduino::begin | ( | ) |
This method must be called at beginning before any publish, subscribe, wakeup and sleep call.
Definition at line 111 of file NBduinoLibrary.cpp.
NBduino::publish | ( | const String | topic, |
const String | value | ||
) |
This method publish a string to the MQTT broker.
topic | The topic name for publishing (String) |
value | The string to publish (String) |
Definition at line 171 of file NBduinoLibrary.cpp.
String NBduino::reqIMEI | ( | ) |
This method return the NBduno IMEI string (String).
Definition at line 222 of file NBduinoLibrary.cpp.
NBduino::setAPN | ( | String | APN | ) |
This method set the APN
APN | The name or the APN (String) |
Definition at line 69 of file NBduinoLibrary.cpp.
NBduino::sleep | ( | ) |
This method asleep the NBduino shield.
Definition at line 157 of file NBduinoLibrary.cpp.
NBduino::wakeup | ( | ) |
This method wakeup the NBduino shield.
Definition at line 144 of file NBduinoLibrary.cpp.