OpenSprinkler Forums OpenSprinkler Unified Firmware ESP8266 Use native GPIOs Reply To: ESP8266 Use native GPIOs

#76213

Dan Christensen
Participant

@Chassy33 Yes, that is correct. It was confirmed to me in a support ticket, and I also checked the code. In the javascript code, you can see that it queries the controller for its settings in this function:

https://github.com/OpenSprinkler/OpenSprinkler-App/blob/5818d27143e045dfc315348c752bfccb213a732f/www/js/main.js#L1146

And the controller replies here, putting the value of PIN_FREE_LIST in the response:

https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/e9e04b006f82a29f2bd2317770a170402fe1bca6/opensprinkler_server.cpp#L1192

You can also find the spot where the UI code looks up the gpio list in the response.

I will be testing this myself when my controller arrives, as I’m adding a ninth zone with an external relay.