Info about String Payload
-
I am intrigued by the following thing, I want to send a string to the controller, tried in many things but I don't seem to get one thing. To be short, I want to send to the controller a string containing 14 bytes, more exactly the ID of the RFID Tag. If I am sending this way:
gw.send(msgRfTag.set("24848484852515754685348483"));
everything goes well.
But if I want to do the following:
String strTag = "24848484852515754685348483";
gw.send(msgRfTag.set(strTag));it does not compile, error: no matching function for call to 'MyMessage::set(String&)'
I use Arduino 1.5.8, on Windows enviroment, latest library.
-
try using a C string
char *strTag[] = {"24848484852515754685348483"};
that will probably work for you...
-
1 out of 3
Suggested Topics
-
Semicolon in Payload
Bug Reports • 8 Feb 2015, 18:14 • klim 8 Feb 2015, 18:30 -
payload ACK
Feature Requests • 22 Nov 2014, 16:46 • dzairo 22 Nov 2014, 19:28 -
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 20 days ago • bocalexandru 19 days ago -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 12 days ago