I have a node.js web app that can read from the serial port of the computer using this library.
I want to be able to plug in my Lilygo LORA32 (TTGO v3 v1.6.1) to USB on the computer and ingest the pax value to use in my code to drive a web visualization.
I can see that this is being logged in the serial monitor of VSCODE via : senddata.cpp:91 :
sendData() Sending count results pax=7 wifi=1 ble=6
how would I set something up such that I could listen expressly for the pax value coming from the serial monitor and store that to a variable in node.js? I don't need any actual node.js code, just need to know how to set up the serial output in the esp32-paxcounter code (presumably in senddata.cpp?
Thanks for the help!