1 (edited by lifescape50 2020-03-30 12:34:45)

Topic: Sending a string instead of switching a pin on/off

Hi,
Had a play with this but struggling to find an answer, i can set up RemoteXY with the app and a EPS32 to switch leds on off etc.  I want to now send a pre set and defined string out rather than switch a pin on/off.
Cant seem to find the syntax for doing this within the setting up of the code.

EG i have a string Code1="a6b4c" and i want to send this out to the serial port when Button 1 is pressed on the app.
Code2 to go when button 2 is pressed etc etc .

The app is connected via WiFi not Bluetooth as this isnt an option.

ideas greatly received.
Thanks,
Mike

2

Re: Sending a string instead of switching a pin on/off

Not sure to understand your demand … mybe with this ?  but it seems to be to simple ...

Code1=a6b4c
if(RemoteXY.button1=1) {
Serial.println(Code1)
}