-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renamed example file to fit PlatformIO, added detailed quickstart #9
base: master
Are you sure you want to change the base?
Conversation
I'm not really keen to rename credentials.h.example. There are 2 reasons:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend creating a README.Windows that has your specific setup instructions, and keep the primary README.md platform neutral.
This describes one fast and easy way to get started, though there are other options. | ||
|
||
You will require: | ||
- A wirless router, with a dedicated secured (WPA2, AES) 2.4Ghz network, set to control channel 1 (2.412 Ghz), auto 20/40Mhz mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Channel 1 should no longer be necessary, since I've made the default be to use the staging tree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needed it seems like, tried it out today. Not a bad comment to have regardless to reduce potential issues.
1b) Install the ESP8266MQTTMesh Library. PlatfromIO Home -> Libraries -> Search -> ```ESP8266MQTTMesh``` -> Install\ | ||
This should automatically install all necessary pre-requisites. | ||
2) Install the MQTT Broker: Mosquitto and all pre-requisites https://mosquitto.org/download/ | ||
3) Install the MQTT UI/Monitor: MQTT.fx http://www.mqttfx.org/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that installing MQTT is beyond the scope of what I'd expect in a tutorial...
MQTT.fx is certainly not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would help debug issues
4) Install Python, and paho-mqtt. In Windows: ```python -m pip install paho-mqtt``` This is needed for OTA updates. | ||
5) In Windows, add outgoing and incoming firewall rules to allow ports 1883 and optionally 1884 | ||
6) Start the Mosquitto Broker. In Windows, start a administrator command prompt, navigate to C:\Program Files (x86)\mosquitto and type in ```net start mosquitto``` | ||
7) Start MQTT.fx and click connect. Button on the right should turn green. Go to the subscribe tab, and click scan under topics collector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, I think describing the setup on MQTT is unnecessary. Also, since I program exclusively in Linux, I cannot support any of these Windowsisms. This means I won't be able to help resolve issues related to windows setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these programs have identical Linux versions, I happen to use both
9) Start the Serial Monitor in PlatformIO to see debug messages as needed. | ||
10) You should now see Topics appearing in MQTT.fx window from step 7). Clicking on a topic should show data | ||
![](http://i.imgur.com/ucylCqR.png) | ||
11) Publishing data to a node can also be done through the UI by selecting the esp8266-in/* topic that matches the esp8266-out/* topic seen in the subscribe window. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And again with the MQTT.fx
This is actually helpful... |
BUt I still dont understand how to use send_ota.py or how to start with it...please help |
Something like this |
sending Ping Answer on InTopic exept on out Topic
Open to comments, change requests, etc.
Should be on 0.8.4