Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiled #44

Open
kromv opened this issue Jul 4, 2021 · 0 comments
Open

Not compiled #44

kromv opened this issue Jul 4, 2021 · 0 comments

Comments

@kromv
Copy link

kromv commented Jul 4, 2021

C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino: In member function 'void GSM_MQTT::AutoConnect()':
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:23:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
connect("qwertyuiop", 0, 0, "", "", 1, 0, 0, 0, "", "");
^
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:23:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:23:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:23:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:23:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino: In member function 'void GSM_MQTT::OnConnect()':
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:83:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
publish(0, 0, 0, _generateMessageID(), "SampleTopic", "Hello");
^
C:\temp\222\temp\sketch_jul04a\sketch_jul04a.ino:83:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp: In member function 'void GSM_MQTT::_tcpInit()':
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:81:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (_sendAT("AT\r\n", 5000) == 1)
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:93:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (_sendAT("ATE1\r\n", 2000) == 1)
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:105:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (sendATreply("AT+CREG?\r\n", "0,1", 5000) == 1)
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:105:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:107:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_sendAT("AT+CIPMUX=0\r\n", 2000);
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:108:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_sendAT("AT+CIPMODE=1\r\n", 2000);
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:109:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (sendATreply("AT+CGATT?\r\n", ": 1", 4000) != 1)
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:109:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:111:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_sendAT("AT+CGATT=1\r\n", 2000);
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:126:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_tcpStatus = sendATreply("AT+CIPSTATUS\r\n", "STATE", 4000);
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:126:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:149:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_sendAT("AT+CSTT="AIRTELGPRS.COM"\r\n", 5000);
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:154:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_sendAT("AT+CIICR\r\n", 5000) ;
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:159:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sendATreply("AT+CIFSR\r\n", ".", 4000) ;
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:159:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:168:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (_sendAT(""\r\n", 5000) == 1)
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:195:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
sendATreply("AT+CIPSHUT\r\n", "OK", 4000) ;
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:195:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp: In member function 'void GSM_MQTT::_ping()':
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:222:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
MQTT.sendATreply("AT+CIPSHUT\r\n", ".", 4000);
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:222:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp: In function 'void serialEvent()':
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:879:18: error: 'class GSM_MQTT' has no member named 'MQTT_flag'; did you mean 'MQTT_Flag'?
MQTT.MQTT_flag = false;
^~~~~~~~~
MQTT_Flag
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:882:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
MQTT.sendATreply("AT+CIPSHUT\r\n", ".", 4000) ;
^
C:\Users\�����\Documents\Arduino\libraries\MQTT_SIM800\GSM_MQTT.cpp:882:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants