Post links and attach files for documentation here, also chat about these docs freely

User avatar
By mcsa
#2000 I write example that toggle GPIO via TCP, based on GPIO2 example.
Iis operate GPIO 0,2,12,13,14,16 (all gpio on esp-03)
I am new newbie in C, and code may look strange.
Link to SRC and firmware https://drive.google.com/file/d/0B3aO1G ... sp=sharing

when module power-on it start TCP server on port 9999, TCP comands:
GPIO,NN,state - switch gpio number NN to state "state", ex GPIO,00,1 - set GPIO1 to 1 or GPIO,16,0 - set GPIO16 to 0
GPIO,NN - read gpio number NN state, ex GPIO,00 or GPIO,12

PS I found that only gpio00 and gpio02 work, other always in high state. trying to solve the problem
PS I resolve problem, now working GPIO 0,2,12,13,14. files updated
Last edited by mcsa on Tue Oct 28, 2014 9:43 am, edited 2 times in total.