Hello programmer comrades. My code is half-working. Or maybe 30% working.
I am attempting to create an app which pairs with a device (based on NodeMCU ESP32) capable of controlling various atmospheric devices (air conditioners, heaters, etc). I have already created the atmospheric control device successfully (with ample help from this forum) in the past, so only the app portion is really new.
As far as I can tell, the app (made on MIT App Inventor), works properly. And this isn't really the right place to ask about that anyway. But all the app really needs to do is send a data string, which is appearing properly in Serial Monitor.
My issue is, once I successfully receive the data string over Bluetooth, nothing happens. Based on what I read and attempted to restructure from Serial Input Basics, particularly Example #5, it should detect that the incoming data uses the start & end characters < and > to identify the data as a desired string, parse the string for my 7 values separated by commas, and then print those 7 values into the Serial Monitor. It does none of this, and I'm not sure why.
I'll also say this is only my second-ever coding project and I have no former training/education and a "learn as I go" approach, so I may have missed something extremely obvious or tried to do something "illegal". I tried doing due diligence like reading the Serial Input Basics threads and many Bluetooth guides, and servo arm controls since that seems like the closest analog to what I'm doing here. But ultimately, new coder who needs help, and appreciates it.
To reiterate, my ultimate goal here is to receive a data string from an app over Bluetooth, parse that data string for 7 separate values, and assign those values to integers (or anything with the same effect) until the controller is updated next (possibly weeks or months). Then, use those integers in other applications not yet added to the code. Only the first step is happening.
Code attached, as well as an image of the relevant portion of my MIT App Inventor code but that's pretty straightforward and, as I said, seems to be working.
Controller Progress Code.txt (4.73 KB)
