So any help would be very appreciated and please keep in mind I just began yesterday so I do not have much knowledge of this programming language (I believe it's C++ but I may be wrong, its at least a form of C). Send_a_message.ino:1:30: invalid conversion from 'int' to 'const char*' send_a_message.ino:9:18: invalid conversion from 'int' to 'const char*'
So, how can I fix this? I have tried declaring the hour integer as a const char* from the beginning but it gives 2 errors invalid conversion from const char' to char' error: holystinken: Programming: 7: 11-23-2009 06:01 PM: error: invalid conversion from const char to char Dahakon: Programming: 1: 08-31-2009 09:33 AM: about C++ invalid conversion from 'const char' to 'char' teoporta: Programming: 3: 07-17-2007 09:24 AM: invalid conversion from const char. So I understand that Particle.publish sends a char and not an int so it's trying to convert the hour integer into a char but it fails. Hey Guys I just tried a little classes and object stuff and came. Send_a_message.ino:18:26: invalid conversion from 'int' to 'const char*' Invalid conversion from 'const char' to 'char' Falke88. Well you can make a static array of string literals, one for each char and use the char as the index into the array.
Implicit type coercion in javascript is automatic conversion of value from one data. hour () //the integer hour is now equal to the hour void setup () Differences between declaring variables using var, let and const. I have not been coding for very long, since yesterday :), and I have just written a very simple program for a Particle Electron for a project I'm working on.