RAKWireless / WisLTE_Arduino

WisLTE,WisCellular,Arduino Library,BG96,RAKWireless,RAK
7 stars 4 forks source link

When trying to verify the samples provided #6

Open calabiyauman opened 5 years ago

calabiyauman commented 5 years ago

`/WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:``` In function 'void setup()': MQTTS_Client:115: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!WisLTE.InitAPN(comm_pdp_index, APN, "", "", apn_error)){ ^ In file included from /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33:0, from /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32, from /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:33, from /WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:2: /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:85:10: error: initializing argument 2 of 'bool WisLTEBG96TCPIP::InitAPN(unsigned int, char, char, char, char)' [-fpermissive] bool InitAPN(unsigned int pdp_index, char apn, char usr, char pwd, char err_code);

      ^

MQTTS_Client:157: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (WisLTE.OpenMQTTNetwork(comm_mqtt_index, mqtt_server, mqtt_port) != 0){ ^ In file included from /WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:2:0: /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:89:27: error: initializing argument 2 of 'Mqtt_Network_Result_t WisLTEBG96MQTT::OpenMQTTNetwork(unsigned int, char, unsigned int)' [-fpermissive] Mqtt_Network_Result_t OpenMQTTNetwork(unsigned int mqtt_index, char host_name, unsigned int port);

                       ^

MQTTS_Client:169: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (WisLTE.CreateMQTTClient(comm_mqtt_index, mqtt_client_id, "", "") != 0){ ^ In file included from /WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino:2:0: /Documents/Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:93:33: error: initializing argument 2 of 'Mqtt_Client_Result_Status_t WisLTEBG96MQTT::CreateMQTTClient(unsigned int, char, char, char)' [-fpermissive] Mqtt_Client_Result_Status_t CreateMQTTClient(unsigned int mqtt_index, char client_id, char username, char password);

                             ^

/WisLTE_Arduino/examples/MQTTS_Client/MQTTS_Client.ino: In function 'void loop()': MQTTS_Client:201: error: invalid conversion from 'char' to 'char' [-fpermissive] sta_buf = strstr(mqtt_recv, "\",\""); ^ MQTTS_Client:206: error: invalid conversion from 'char' to 'char' [-fpermissive] sta_buf = strchr(mqtt_recv, ','); ^ exit status 1 invalid conversion from 'const char' to 'char' [-fpermissive] `

pierre-b commented 4 years ago

Same issue here, any update please?

pierre-b commented 4 years ago

According to this thread it looks like it works with an old Windows compiler...

I fixed some issues but there are so many and I'm not familiar enough with CPP yet to fix them:

`/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.cpp: In constructor 'WisLTEBG96Serial::WisLTEBG96Serial()': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.cpp:3:1: error: uninitialized reference member in 'class Stream&' [-fpermissive] WisLTEBG96Serial::WisLTEBG96Serial()

^~~~ In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.cpp:1:0: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:108:13: note: 'Stream& WisLTEBG96Serial::_atserial' should be initialized Stream& _atserial;

         ^~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.cpp:3:1: error: uninitialized reference member in 'class Stream&' [-fpermissive] WisLTEBG96Serial::WisLTEBG96Serial()

^~~~ In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.cpp:1:0: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:109:13: note: 'Stream& WisLTEBG96Serial::_dserial' should be initialized Stream& _dserial;

         ^~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp: In member function 'Net_Status_t WisLTEBG96Common::DevNetRegistrationStatus()': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp:219:24: error: invalid conversion from 'int' to 'Net_Status_t {aka net_status}' [-fpermissive] n_status = atoi(sta_buf + 1);

                ~~~~^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp:236:24: error: invalid conversion from 'int' to 'Net_Status_t {aka net_status}' [-fpermissive] n_status = atoi(sta_buf + 1);

                ~~~~^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp: In member function 'Cmd_Response_t WisLTEBG96Common::DevOperatorNetwork(unsigned int&, unsigned int&, char, Net_Type_t&, Cmd_Status_t)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp:299:20: error: invalid conversion from 'char' to 'char' [-fpermissive] p[i] = '\0';

                ^~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp:303:23: error: invalid conversion from 'int' to 'Net_Type_t {aka net_type}' [-fpermissive] act = atoi(p[3]);

               ~~~~^~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp: In member function 'bool WisLTEBG96Common::GetDevNetworkInformation(char, char, char, char)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.cpp:327:16: error: invalid conversion from 'char' to 'char*' [-fpermissive] p[i] = '\0';

            ^~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.cpp: In member function 'bool WisLTEBG96TCPIP::DevPingFunction(unsigned int, char)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.cpp:280:20: error: invalid conversion from 'char' to 'char' [-fpermissive] p[i] = '\0';

                ^~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp: In member function 'bool WisLTEBG96SSL::InitSSL(unsigned int, char, char, char, char)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:199:54: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!UploadFiles(ssl_ca_cert_name, ca_cert)){

                                                  ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:63:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::UploadFiles(char, char)' bool UploadFiles(char filename, char u_file);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:203:57: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!DeleteFiles(ssl_ca_cert_name)){

                                                     ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:61:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::DeleteFiles(char)' bool DeleteFiles(char filename);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:212:160: error: invalid conversion from 'const char' to 'char' [-fpermissive] sprintf(e_str, "\r\nSSL ERROR: Error uploading file, error code: %d ,Please check the corresponding documentation for details.\r\n", f_err_code);

                                                                                                                                                            ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.cpp: In member function 'Socket_Event_t WisLTEBG96TCPIP::WaitCheckSocketEvent(char*, unsigned int)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.cpp:387:12: error: invalid conversion from 'int' to 'Socket_Event_t {aka socket_event}' [-fpermissive] return 0;

        ^

In file included from /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/string.h:10:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/stdio.h:244:5: note: initializing argument 1 of 'int sprintf(char, const char, ...)' int _EXFUN(sprintf, (char __restrict, const char __restrict, ...) ^ /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:218:77: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!SetSSLCertificate(ssl_index, ssl_ca_cert_name, "", "", false)){

                                                                         ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:88:6: note: initializing argument 2 of 'bool WisLTEBG96SSL::SetSSLCertificate(unsigned int, char, char, char, bool)' bool WisLTEBG96SSL::SetSSLCertificate(unsigned int ssl_index, char ca_cert_path, char client_cert_path, char client_key_path, bool validity_check)

  ^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:229:54: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!UploadFiles(ssl_ca_cert_name, ca_cert)){

                                                  ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:63:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::UploadFiles(char, char)' bool UploadFiles(char filename, char u_file);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:233:57: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!DeleteFiles(ssl_ca_cert_name)){

                                                     ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:61:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::DeleteFiles(char)' bool DeleteFiles(char filename);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:242:160: error: invalid conversion from 'const char' to 'char' [-fpermissive] sprintf(e_str, "\r\nSSL ERROR: Error uploading file, error code: %d ,Please check the corresponding documentation for details.\r\n", f_err_code);

                                                                                                                                                            ^

In file included from /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/string.h:10:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/stdio.h:244:5: note: initializing argument 1 of 'int sprintf(char, const char, ...)' int _EXFUN(sprintf, (char __restrict, const char __restrict, ...) ^ /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:248:62: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!UploadFiles(ssl_client_cert_name, client_cert)){

                                                          ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:63:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::UploadFiles(char, char)' bool UploadFiles(char filename, char u_file);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:252:61: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!DeleteFiles(ssl_client_cert_name)){

                                                         ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:61:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::DeleteFiles(char)' bool DeleteFiles(char filename);

      ^~~~~~~~~~~

Multiple libraries were found for "WisLTEBG96MQTT.h" /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:261:160: error: invalid conversion from 'const char' to 'char' [-fpermissive] Used: /.../Arduino/libraries/WisLTE_Arduino sprintf(e_str, "\r\nSSL ERROR: Error uploading file, error code: %d ,Please check the corresponding documentation for details.\r\n", f_err_code);

                                                                                                                                                            ^

In file included from /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/string.h:10:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/stdio.h:244:5: note: initializing argument 1 of 'int sprintf(char, const char, ...)' int _EXFUN(sprintf, (char __restrict, const char __restrict, ...) ^ /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:267:60: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!UploadFiles(ssl_client_key_name, client_key)){

                                                        ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:63:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::UploadFiles(char, char)' bool UploadFiles(char filename, char u_file);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:271:60: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!DeleteFiles(ssl_client_key_name)){

                                                        ^

In file included from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:61:10: note: initializing argument 1 of 'bool WisLTEBG96FILE::DeleteFiles(char)' bool DeleteFiles(char filename);

      ^~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:280:160: error: invalid conversion from 'const char' to 'char' [-fpermissive] sprintf(e_str, "\r\nSSL ERROR: Error uploading file, error code: %d ,Please check the corresponding documentation for details.\r\n", f_err_code);

                                                                                                                                                            ^

In file included from /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/string.h:10:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:1: /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/stdio.h:244:5: note: initializing argument 1 of 'int sprintf(char, const char, ...)' int _EXFUN(sprintf, (char __restrict, const char __restrict, ...) ^ /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:286:112: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!SetSSLCertificate(ssl_index, ssl_ca_cert_name, ssl_client_cert_name, ssl_client_key_name, false)){

                                                                                                            ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:88:6: note: initializing argument 2 of 'bool WisLTEBG96SSL::SetSSLCertificate(unsigned int, char, char, char, bool)' bool WisLTEBG96SSL::SetSSLCertificate(unsigned int ssl_index, char ca_cert_path, char client_cert_path, char client_key_path, bool validity_check)

  ^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:286:112: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!SetSSLCertificate(ssl_index, ssl_ca_cert_name, ssl_client_cert_name, ssl_client_key_name, false)){

                                                                                                            ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:88:6: note: initializing argument 3 of 'bool WisLTEBG96SSL::SetSSLCertificate(unsigned int, char, char, char, bool)' bool WisLTEBG96SSL::SetSSLCertificate(unsigned int ssl_index, char ca_cert_path, char client_cert_path, char client_key_path, bool validity_check)

  ^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:286:112: error: invalid conversion from 'const char' to 'char' [-fpermissive] while (!SetSSLCertificate(ssl_index, ssl_ca_cert_name, ssl_client_cert_name, ssl_client_key_name, false)){

                                                                                                            ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:88:6: note: initializing argument 4 of 'bool WisLTEBG96SSL::SetSSLCertificate(unsigned int, char, char, char, bool)' bool WisLTEBG96SSL::SetSSLCertificate(unsigned int ssl_index, char ca_cert_path, char client_cert_path, char client_key_path, bool validity_check)

  ^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp: In member function 'Mqtt_Network_Result_t WisLTEBG96MQTT::OpenMQTTNetwork(unsigned int, char*, unsigned int)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:112:20: error: invalid conversion from 'int' to 'Mqtt_Network_Result_t {aka mqtt_network_result_event}' [-fpermissive] return atoi(sta_buf + 1);

            ~~~~^~~~~~~~~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:114:13: error: invalid conversion from 'int' to 'Mqtt_Network_Result_t {aka mqtt_network_result_event}' [-fpermissive] return -2;

         ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp: In member function 'Mqtt_Client_Result_Status_t WisLTEBG96MQTT::CreateMQTTClient(unsigned int, char, char, char*)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:160:20: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return atoi(temp);

            ~~~~^~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:162:13: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return -1;

         ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp: In member function 'SSL_Socket_Event_t WisLTEBG96SSL::WaitCheckSSLSocketEvent(char*, unsigned int)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.cpp:412:12: error: invalid conversion from 'int' to 'SSL_Socket_Event_t {aka ssl_socket_event}' [-fpermissive] return 0;

        ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp: In member function 'Mqtt_Client_Result_Status_t WisLTEBG96MQTT::MQTTSubscribeTopic(unsigned int, unsigned int, char, Mqtt_Qos_t)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:208:16: error: invalid conversion from 'char' to 'char' [-fpermissive] p[i] = '\0';

            ^~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:209:20: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return atoi(p[1]);

            ~~~~^~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:211:13: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return -1;

         ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp: In member function 'Mqtt_Client_Result_Status_t WisLTEBG96MQTT::MQTTUnsubscribeTopic(unsigned int, unsigned int, char*)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:232:20: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return atoi(temp);

            ~~~~^~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:234:13: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return -1;

         ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp: In member function 'Mqtt_Client_Result_Status_t WisLTEBG96MQTT::MQTTPublishMessages(unsigned int, unsigned int, Mqtt_Qos_t, char, bool, char)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:249:36: error: invalid conversion from 'char' to 'const char*' [-fpermissive] strcat(publish_data, ctrl_z);

                                ^

In file included from /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/string.h:10:0, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Serial.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96Common.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96TCPIP.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96FILE.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96SSL.h:32, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.h:33, from /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:1: /xxx/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/arm-none-eabi/include/string.h:34:8: note: initializing argument 2 of 'char strcat(char, const char)' char _EXFUN(strcat,(char __restrict, const char __restrict)); ^ /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:263:24: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return atoi(temp);

                ~~~~^~~~~~

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:266:13: error: invalid conversion from 'int' to 'Mqtt_Client_Result_Status_t {aka mqtt_client_result_status}' [-fpermissive] return -1;

         ^

/.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp: In member function 'Mqtt_URC_Event_t WisLTEBG96MQTT::WaitCheckMQTTURCEvent(char*, unsigned int)': /.../Arduino/libraries/WisLTE_Arduino/src/WisLTEBG96MQTT.cpp:287:13: error: invalid conversion from 'int' to 'Mqtt_URC_Event_t {aka mqtt_urc_event}' [-fpermissive] return -1;

         ^

exit status 1`