Arduino NBduino Library
NBduinoLibrary.h
Go to the documentation of this file.
1 
12 #ifndef NBDUINOLIBRARY_H
13 #define NBDUINOLIBRARY_H
14 #include <SoftwareSerial.h>
15 
16 
17 class NBduino
18 {
19  public:
20  NBduino();
21  NBduino(const String mqttServer, const int mqttPort, const String mqttUser, const String mqttPassword);
22  NBduino(const String mqttServer, const int mqttPort, const String mqttUser, const String mqttPassword, unsigned long timeToConn);
23  setAPN(String APN);
24  bool begin();
25  wakeup();
26  sleep();
27  String reqIMEI();
28  publish(const String topic, const String value);
29  private:
30  const int _led=13;
31  const int _reset=7;
32  const int _pwrkey=8;
33  String _mqttServer;
34  int _mqttPort;
35  String _mqttUser;
36  String _mqttPassword;
37  unsigned long _lastTime;
38  unsigned long _timeToConn=120000;
39  char _inChar;
40 };
41 #endif
setAPN(String APN)
bool begin()
publish(const String topic, const String value)
String reqIMEI()