Now, according to https://github.com/espressif/esp-mdf/bl ... uide_en.md, I should be able to communicate with the nodes by doing HTTP requests to the root node's lan ip address.
This is what I get from monitor:
Code: Select all
I (5488) mesh: [DONE]connect to router:Administracao #2, rssi:-40, 78:44:76:41:b3:06[layer:1], my_vote_num:1/voter_num:1, rc[30:ae:a4:90:c1:d1/-40]
I (11918) wifi: ap channel adjust o:6,1 n:6,2
I (11918) wifi: n:6 2, o:6 0, ap:6 2, sta:6 2, prof:6
I (12898) wifi: state: init -> auth (b0)
I (12908) wifi: state: auth -> assoc (0)
I (12918) wifi: state: assoc -> run (10)
I (12938) wifi: connected with Administracao #2, channel 6
I (12938) wifi: pm start, type: 0
I (12938) mesh: [scan]new scanning time:600ms
W (12948) wifi: [beacon]new interval:300ms
E (12948) event: invalid static ip
I (12948) mesh_main: <MESH_EVENT_PARENT_CONNECTED>layer:0-->1, parent:78:44:76:41:b3:06<ROOT>, ID:77:77:77:77:77:77
I (12958) mesh_main: <MESH_EVENT_ROOT_ADDRESS>root address:30:ae:a4:90:c1:d1
I (12958) Teste: Ligando led
W (12968) mesh_main: [#RX:1/1][L:1] parent:78:44:76:41:b3:06, receive from 30:ae:a4:90:c1:d0, size:1460, heap:181012, flag:0[err:0x0, proto:0, tos:0]
I (13958) Teste: Desligando led
W (13958) mesh_main: [#RX:2/2][L:1] parent:78:44:76:41:b3:06, receive from 30:ae:a4:90:c1:d0, size:1460, heap:181496, flag:0[err:0x0, proto:0, tos:0]
I (14958) Teste: Ligando led
W (14958) mesh_main: [#RX:3/3][L:1] parent:78:44:76:41:b3:06, receive from 30:ae:a4:90:c1:d0, size:1460, heap:181496, flag:0[err:0x0, proto:0, tos:0]
I (15168) mesh_main: <MESH_EVENT_ROOT_GOT_IP>sta ip: 10.0.0.50, mask: 255.255.0.0, gw: 10.0.0.1
I (15168) event: sta ip: 10.0.0.50, mask: 255.255.0.0, gw: 10.0.0.1
I can ping to this IP, so I know the connection is OK
But the device always refuses connection when I try to open a connection on port 80. I tried using a browser and using raw sockets via putty
Is there anything else I should do to enable connection from lan?