Comments (10)
try to reset node erase_flash and reconnect to Gateway.
from enigmaiot.
1.Your gateway is working fine.
Now you have to connect Nodes to your new esp-now (i think you called "Fouter")
You can see that it is working in your web browser through REST API , just http://**gatewayIP**/api/gw/info
[]https://github.com/gmag11/EnigmaIOT/blob/master/docs/api.md
But normal running is you receive info of your nodes through the mqtt of gateway.
2. status 1
means gateway is online.
3. You can connect without pwd, only with user using []https://github.com/gmag11/EnigmaIOT/releases/download/0.9.7/EnigmaIOT-Gateway-ESP32-Plain_MQTT.bin
from enigmaiot.
Thanks. I'm still struggling though. I can't get nodes to connect. The problem seems to be that they're using the mac address of the house network access point as the gateway mac. If I use the gateway AP it doesn't work because that's on the wrong channel and it has the wrong mac address (since it's a different interface). I'm also puzzled because the node is connecting to (obtaining IP address from) network AP even though it doesn't need to, indeed shouldn't.
What am I doing wrong? On the config screen of the node what is it expecting to be entered?
from enigmaiot.
I'm having the same issue as mentioned above. I have setup my node on an ESP8266, and am trying to communicate with an ESP32 (gateway). The gateway mac address that the node is trying to connect to is not the MAC address of the ESP32.
Is it worth trying to use 2 ESP32s instead? I have read elsewhere that setting a different channel than channel 1 for the ESP8266 is a bit hit and miss.
No nodes are registered as per the API call /api/gw/nodes.
from enigmaiot.
As I can understand you have set the same name in both networks (Wi-Fi & EspNow), that's your mistake.
EnigmaIot Gateway creates a new Wi-Fi network, so you have to reset your Gateway and give a different name to your EnigmaIot network (I called mine "Esp-Now"), and maybe a different password. After that, you can connect the nodes to your new Esp-Now network
from enigmaiot.
Of course, lightbulb moment.
from enigmaiot.
The lightbulb's gone out. I can't get it to work it just reports error sending data.
This is the node starting. Everything seems OK, it's found SSID==fouter which is the name of esp-now network. It's chosen channel 9, the channel of my home network but my wifi analyzer shows fouter is using channel 6 (ch3 was entered in the config!).
10:03:55.947 -> [I][EnigmaIOTNode.cpp:733] begin(): 28 Heap: 309708 Starting from Flash
10:03:56.044 -> [I][EnigmaIOTNode.cpp:745] begin(): 127 Heap: 305364 SPIFFS mounted
10:04:00.468 -> [I][EnigmaIOTNode.cpp:882] searchForGateway(): 4551 Heap: 254188 Gateway fouter found: 1
10:04:00.468 -> [I][EnigmaIOTNode.cpp:883] searchForGateway(): 4551 Heap: 254188 BSSID: 30:AE:A4:07:6C:31
10:04:00.468 -> [I][EnigmaIOTNode.cpp:884] searchForGateway(): 4556 Heap: 254188 Channel: 9
10:04:00.468 -> [I][EnigmaIOTNode.cpp:885] searchForGateway(): 4562 Heap: 254188 RSSI: -57
10:04:00.468 -> [I][helperFunctions.cpp:59] initWiFi(): 4570 Heap: 254500 AP MAC address of this device is 30:AE:A4:1C:B8:BD
10:04:00.502 -> [I][helperFunctions.cpp:60] initWiFi(): 4578 Heap: 254500 STA MAC address of this device is 30:AE:A4:1C:B8:BC
10:04:00.502 -> [I][espnow_hal.cpp:70] begin(): 4588 Heap: 254500 Starting ESP-NOW as node
10:04:00.502 -> [I][espnow_hal.cpp:40] initComms(): 4595 Heap: 254364 Gateway peer Added in channel 9. Result = ESP_OK
10:04:00.502 -> Vcc: 0.000000
10:04:00.535 -> Trying to send: 00 02 00 00 01 67 00 CB 02 00 7B 03 73 27 58 04 75 09 7E
10:04:00.535 -> ---- Error sending data
10:04:00.535 -> Total time: 4586 ms
10:04:02.030 -> [I][EnigmaIOTNode.cpp:1088] handle(): 6116 Heap: 254000 Random delay (2850)
10:04:06.419 -> [I][EnigmaIOTNode.cpp:1273] clientHello(): 10503 Heap: 254000 -------> CLIENT HELLO
10:04:08.648 -> [I][EnigmaIOTNode.cpp:1055] handle(): 12744 Heap: 254000 Current node status: 2
10:04:08.648 -> [I][EnigmaIOTNode.cpp:1065] handle(): 12745 Heap: 254000 Registration timeout. Go to sleep for 8339 ms
10:04:16.958 -> ets Jun 8 2016 00:22:57
I've no idea.
from enigmaiot.
This helped me. It's working now. Thanks for your help.
from enigmaiot.
@nottledim Did you get it working. I've written a howto guide that may help to start with EnigmaIOT. Check it here: https://github.com/gmag11/EnigmaIOT/blob/master/docs/howto.md
from enigmaiot.
No, I gave up in frustration; resolved my requirements a different way. Now you've reminded me I might try again. Thanks.
from enigmaiot.
Related Issues (20)
- Support for BMP280 sensor HOT 3
- EnigmaIOT beginner's guide or help sources? HOT 4
- trying to build MQTT-noSSL HOT 1
- Errors when DEBUG enabled HOT 2
- ESP32 WiFi won't connect HOT 1
- GatewayAPI.cpp getNodeInfo() compile error HOT 3
- Bootloop in new nodes HOT 1
- Canβt work with EnigmaIOT HOT 4
- MQTT command line to switch LED off/on HOT 3
- esp8266 do not have enough RAM to run the default examples due to NUM_NODE mostly HOT 2
- Issue building for an esp32 with version 0.9.7 HOT 4
- Node without name HOT 1
- Portal recovery problem
- Instructions from howto.md does not work HOT 1
- Having trouble compiling gateway HOT 1
- FailSafe.h HOT 1
- Notice when a node is connected or disconnected from EnigmaIOT network
- FR: Is there a way to seperate MQTT client from ESP-Now controller? HOT 5
- El Gateway MQTT EnigmaIOT no funciona correctamente. HOT 7
- Nodes outside range of gateway but within range of another node
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enigmaiot.