Update SIM7000.h

This commit is contained in:
zhujisheng 2019-07-14 20:39:54 +08:00
parent a1273de9db
commit f6a29563b7
1 changed files with 7 additions and 0 deletions

View File

@ -9,9 +9,16 @@
class SIM7000
{
public:
//初始化
bool begin(Stream &port);
//向sim7000模块发送命令
void sendCmd(const char* cmd);
//读收到的信息
int readBuffer(char *buffer, int count, unsigned int timeout = DEFAULT_TIMEOUT, unsigned int chartimeout = DEFAULT_INTERCHAR_TIMEOUT);
//发送命令并接收返回判断返回内容是否包含字符串resp
bool check_send_cmd(const char* cmd, const char* resp, unsigned int timeout = DEFAULT_TIMEOUT, unsigned int chartimeout = DEFAULT_INTERCHAR_TIMEOUT);
private:
SoftwareSerial* mySerial;