-->
Page 11 of 12

Re: Source Code and Examples

PostPosted: Sat Sep 27, 2014 4:51 am
by reaper7
@rudi - looks promising
good job!

Re: Source Code and Examples

PostPosted: Tue Oct 28, 2014 7:03 am
by mcsa
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

Re: Source Code and Examples

PostPosted: Tue Oct 28, 2014 8:01 am
by VasilijHCN
Thank U for sharing. First i need upload original 0.9.2 firmware, then your 2 files ?

Re: Source Code and Examples

PostPosted: Tue Oct 28, 2014 8:39 am
by mcsa
I use 0.9.1