> Executing task: make -f '/Users/rXXXXXXXXXX/.particle/toolchains/buildscripts/1.10.0/Makefile' compile-user -s < :::: COMPILING APPLICATION /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/src/Ubidots_Library_Test.ino:22:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | #define UBIDOTS_TOKEN "Your_Token" // Put here your Ubidots TOKEN | ^~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/src/Ubidots_Library_Test.ino:25:17: note: in expansion of macro 'UBIDOTS_TOKEN' 25 | Ubidots ubidots(UBIDOTS_TOKEN, UBI_TCP); | ^~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/src/Ubidots_Library_Test.ino: In function 'void loop()': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/src/Ubidots_Library_Test.ino:46:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | ubidots.add("Variable_Name_One", value1); // Change for your variable name | ^~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/src/Ubidots_Library_Test.ino:47:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 47 | ubidots.add("Variable_Name_Two", value2); | ^~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/src/Ubidots_Library_Test.ino:48:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | ubidots.add("Variable_Name_Three", value3); | ^~~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.cpp: In function 'UbiProtocol* builderParticle()': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.cpp:58:76: warning: passing NULL to non-pointer argument 2 of 'UbiParticle::UbiParticle(const char*, int, const char*, const char*)' [-Wconversion-null] 58 | UbiProtocol* particleInstance = new UbiParticle(_host, NULL, NULL, _token); | ^ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.h:30, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiParticle.h:32:43: note: declared here 32 | UbiParticle(const char* host, const int port, const char* user_agent, const char* token); | ~~~~~~~~~~^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiHttp.h:27, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.h:29, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h: At global scope: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h:36:18: warning: 'UBI_INDUSTRIAL' defined but not used [-Wunused-variable] 36 | static UbiServer UBI_INDUSTRIAL = "industrial.api.ubidots.com"; | ^~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiHttp.cpp: In member function 'float UbiHTTP::parseHttpAnswer(const char*, char*)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiHttp.cpp:219:23: warning: comparison with string literal results in unspecified behavior [-Waddress] 219 | if (request_type == "LV") { | ^~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiHttp.cpp:234:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] 234 | uint8_t index = 0; | ^~~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiHttp.h:27, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiHttp.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h: At global scope: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h:36:18: warning: 'UBI_INDUSTRIAL' defined but not used [-Wunused-variable] 36 | static UbiServer UBI_INDUSTRIAL = "industrial.api.ubidots.com"; | ^~~~~~~~~~~~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiParticle.h:27, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiParticle.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h:36:18: warning: 'UBI_INDUSTRIAL' defined but not used [-Wunused-variable] 36 | static UbiServer UBI_INDUSTRIAL = "industrial.api.ubidots.com"; | ^~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp: In destructor 'UbiProtocolHandler::~UbiProtocolHandler()': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:63:10: warning: deleting object of abstract class type 'UbiProtocol' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor] 63 | delete _ubiProtocol; | ^~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp: In member function 'void UbiProtocolHandler::buildHttpPayload(char*)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:206:47: warning: NULL used in arithmetic [-Wpointer-arith] 206 | if ((_dots + i)->dot_timestamp_seconds != NULL) { | ^~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:209:48: warning: NULL used in arithmetic [-Wpointer-arith] 209 | if ((_dots + i)->dot_timestamp_millis != NULL) { | ^~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp: In member function 'void UbiProtocolHandler::buildTcpPayload(char*, const char*, const char*)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:255:20: warning: zero-length gnu_printf format string [-Wformat-zero-length] 255 | sprintf(payload, ""); | ^~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:271:47: warning: NULL used in arithmetic [-Wpointer-arith] 271 | if ((_dots + i)->dot_timestamp_seconds != NULL) { | ^~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:274:48: warning: NULL used in arithmetic [-Wpointer-arith] 274 | if ((_dots + i)->dot_timestamp_millis != NULL) { | ^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:26: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.h: At global scope: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.h:44:13: warning: '{anonymous}::_token' defined but not used [-Wunused-variable] 44 | const char* _token; | ^~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiBuilder.h:43:13: warning: '{anonymous}::_host' defined but not used [-Wunused-variable] 43 | const char* _host; | ^~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp: In member function 'UbiProtocolHandler::buildHttpPayload(char*)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:215:34: warning: '%d' directive writing between 1 and 3 bytes into a region of size between 0 and 2 [-Wformat-overflow=] 215 | sprintf(milliseconds, "%d%d%d", hund, dec, units); | ^~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:215:31: note: directive argument in the range [0, 255] 215 | sprintf(milliseconds, "%d%d%d", hund, dec, units); | ^~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:215:31: note: directive argument in the range [0, 255] /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:215:16: note: 'sprintf' output between 4 and 10 bytes into a destination of size 3 215 | sprintf(milliseconds, "%d%d%d", hund, dec, units); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp: In member function 'UbiProtocolHandler::buildTcpPayload(char*, char const*, char const*)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:280:34: warning: '%d' directive writing between 1 and 3 bytes into a region of size between 0 and 2 [-Wformat-overflow=] 280 | sprintf(milliseconds, "%d%d%d", hund, dec, units); | ^~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:280:31: note: directive argument in the range [0, 255] 280 | sprintf(milliseconds, "%d%d%d", hund, dec, units); | ^~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:280:31: note: directive argument in the range [0, 255] /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiProtocolHandler.cpp:280:16: note: 'sprintf' output between 4 and 10 bytes into a destination of size 3 280 | sprintf(milliseconds, "%d%d%d", hund, dec, units); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiTcp.h:29, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiTcp.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h:36:18: warning: 'UBI_INDUSTRIAL' defined but not used [-Wunused-variable] 36 | static UbiServer UBI_INDUSTRIAL = "industrial.api.ubidots.com"; | ^~~~~~~~~~~~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiUdp.h:27, from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiUdp.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/UbiConstants.h:36:18: warning: 'UBI_INDUSTRIAL' defined but not used [-Wunused-variable] 36 | static UbiServer UBI_INDUSTRIAL = "industrial.api.ubidots.com"; | ^~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp: In member function 'void Ubidots::add(char*, float)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:65:89: warning: passing NULL to non-pointer argument 4 of 'void Ubidots::add(char*, float, char*, long unsigned int, unsigned int)' [-Wconversion-null] 65 | void Ubidots::add(char* variable_label, float value) { add(variable_label, value, NULL, NULL, NULL); } | ^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.h:40:76: note: declared here 40 | void add(char* variable_label, float value, char* context, unsigned long dot_timestamp_seconds, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:65:95: warning: passing NULL to non-pointer argument 5 of 'void Ubidots::add(char*, float, char*, long unsigned int, unsigned int)' [-Wconversion-null] 65 | void Ubidots::add(char* variable_label, float value) { add(variable_label, value, NULL, NULL, NULL); } | ^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.h:41:25: note: declared here 41 | unsigned int dot_timestamp_millis); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp: In member function 'void Ubidots::add(char*, float, char*)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:67:107: warning: passing NULL to non-pointer argument 4 of 'void Ubidots::add(char*, float, char*, long unsigned int, unsigned int)' [-Wconversion-null] 67 | void Ubidots::add(char* variable_label, float value, char* context) { add(variable_label, value, context, NULL, NULL); } | ^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.h:40:76: note: declared here 40 | void add(char* variable_label, float value, char* context, unsigned long dot_timestamp_seconds, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:67:113: warning: passing NULL to non-pointer argument 5 of 'void Ubidots::add(char*, float, char*, long unsigned int, unsigned int)' [-Wconversion-null] 67 | void Ubidots::add(char* variable_label, float value, char* context) { add(variable_label, value, context, NULL, NULL); } | ^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.h:41:25: note: declared here 41 | unsigned int dot_timestamp_millis); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp: In member function 'void Ubidots::add(char*, float, char*, long unsigned int)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:70:62: warning: passing NULL to non-pointer argument 5 of 'void Ubidots::add(char*, float, char*, long unsigned int, unsigned int)' [-Wconversion-null] 70 | add(variable_label, value, context, dot_timestamp_seconds, NULL); | ^~~~ In file included from /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:24: /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.h:41:25: note: declared here 41 | unsigned int dot_timestamp_millis); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp: In member function 'void Ubidots::getContext(char*, IotProtocol)': /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:145:29: warning: zero-length gnu_printf format string [-Wformat-zero-length] 145 | sprintf(context_result, ""); | ^~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:160:29: warning: zero-length gnu_printf format string [-Wformat-zero-length] 160 | sprintf(context_result, ""); | ^~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:167:16: warning: 'strcpy' source argument is the same as destination [-Wrestrict] 167 | sprintf(context_result, "%s", context_result); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/lib/Ubidots/src/Ubidots.cpp:152:16: warning: 'strcpy' source argument is the same as destination [-Wrestrict] 152 | sprintf(context_result, "%s", context_result); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ text data bss dec hex filename 29000 480 1816 31296 7a40 /Users/rXXXXXXXXXX/VSC_Projects/Ubidots_Library_Test/target/2.3.0/photon/Ubidots_Library_Test.elf *** COMPILED SUCCESSFULLY *** Press any key to close the terminal.