I have written an app that works fine by sending from html to HM-10/nano on ios with plugins gathered by evothings.
I can't figure out how to send an inputted text line in a form to the arduino. I would like to send something like manually inputting "1234" instead of touching a button that has a predetermined value ( 1 or 0 )like this...
CONNECT
LED ON
LED OFF
// Application object. var app = {} // Connected device. app.device = null; // Turn on LED. app.ledOn = function() { app.device && app.device.writeDataArray(new Uint8Array([1]), '0000ffe1-0000-1000-8000-00805f9b34fb'); } // Turn off LED. app.ledOff = function() { app.device && app.device.writeDataArray(new Uint8Array([0]), '0000ffe1-0000-1000-8000-00805f9b34fb'); } How would I set up a form to send the manually input didgits?