#if ARDUINO_USB_CDC_ON_BOOT

  #define TINY_GSM_MODEM_BG96
#else
#define TINY_GSM_MODEM_SIM800
// 
#endif
#define SerialMon Serial
#include <TinyGsmClient.h>
#include <PubSubClient.h>


//#define TINY_GSM_DEBUG SerialMon
#define GSM_AUTOBAUD_MIN 9600
#define GSM_AUTOBAUD_MAX 115200
#define TINY_GSM_USE_GPRS true
#define TINY_GSM_USE_WIFI false

#define GSM_PIN ""

const char apn[]      = "cmiot";
const char gprsUser[] = "";
const char gprsPass[] = "";

class GSMMannger
{
   public:
       GSMMannger(int serialnumber,int rx,int tx);  // ���ǹ��캯��
        bool setpu();
        TinyGsm *modem;
        TinyGsmClient *client;
        String GetDataAndTime();
        void loop();
        String I2toS(int n);
    int year,month, day, hour,minute, second;
    float timezone;
    private:
    int m_serialnumber;
    int m_rx;
    int m_tx;

};
 
 