Home Control and Nextion Updates

Just a brief update. Thanks to some feedback I was prompted to see if it is possible in the home control project to get feedback as to the state of an output on the same line as controlling it.

hapticSo for payloads you might use {out12:1} to turn on GPIO12 and {out12?} to get feedback – well you can simply join them together as such into one message:


Also on the subject of haptic feedback when using the software for a Nextion display, put a haptic feedback device onto GPIO12. I used these: http://www.ebay.co.uk/itm/321809227365?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

In the last couple of days I’ve updated the manual and the software to make the responses more consistent.

Nextion WIFI Touch Display project:  Reader John was trying to send a string to the Nextion display from my software and I said I’d check…

So having put the unit into Nextion mode by sending the relevant command {set_serial:2}  which then reboots the unit….  I sent this command… {to_nextion:"t0.txt=\"Hi there\""} and here is the result coming out of GPIO4 or GPIO5 depending on the labelling on your board….

You can click on the image for a larger version but if you refer to the bottom right – you’ll see the message has been picked up by the logic analyser and it is fully intact with the three FF bytes inserted on the end for the Nextion display.

Logic analyser

As a result of this I realised I was not parsing \r\n properly – not that they are needed for anything I’m doing – and these are now implemented in the latest update (1.3.4 at the time of writing)