Re: Windows CYGWIN Setup - but it doesn't seem to work
Posted: Mon Dec 29, 2014 4:03 am
The Eclipse solution is MILES better for Windows - I think people may need help with understanding make files however. I insttalled Eclipse on one machine (Windows 7) and it worked perfectly but on 2 others this weekend, compiling the MQTT software we ran up against strange file errors and had to comment out part of the make file to make it work - also I have NO idea what the online updating is about I've seen it work with the early AT software, where you could punch in a code into the ESP8266 and it would update automatically (that doesn't seem to update very well recently) - but have no idea how I might make that work with other software or my own updates. If anyone wants to help explain that, would be appreciated.
On the other hand, once we DID get Eclipse working, yesterday we played with the MQTT software and to be honest I think this has the most potential of the lot as essentially any ESP-01 can talk to any other ESP-01 via the MQTT broker. The only problem with that is understanding the pesky IBM broker who's instructions are attrocious - having gotten the basic version working yesterday we could in no way get the plain text password version to work - I think tha'ts more the MOSQUITTO setup than the ESP-01s.
But as a demonstration of how useful the Eclipse setup is - I borrowed the port setting instructions from one setup, brouhgt them into the MQTT package and trapped messages "GPIO2 ON" and "GPIO2 OFF" and successfully had the MQTT turning a light on and off - also although the author had not actually used SENDING a message, I ran that and on receipt of a message had one ESP-01 send a message to another instantly and reliably... that is a MAJOR step forward. I'll detail this once we get to grips with passwords in MQTT as I would not dare use this without them.
To make MQTT work however we need a decent client for Android phones for testing as the only one that is out there "My MQTT" is awful, it does't reconnect to a server if it loses the signal, it can only talk to one server and can't store the details of another etc. I found a library for 10 euros for B4A (Basic for Android) which we're considering getting to make our own Android MQTT client with some presets etc, essential for testing. I just hope there are no last minute surprises with the MQTT code.. of and if anyone knows of an MQTT public server that is cheap/free and doesn't put silly limits or zero security, I'd love to hear from them - I fancy sending simple codes around ESP-01 boards with extras like a globally-subscribed TIME message etc. I could see these boards with i2c and MQTT attaching to a range of devices if only this works securely and reliably.
Did I trigger anyone off
On the other hand, once we DID get Eclipse working, yesterday we played with the MQTT software and to be honest I think this has the most potential of the lot as essentially any ESP-01 can talk to any other ESP-01 via the MQTT broker. The only problem with that is understanding the pesky IBM broker who's instructions are attrocious - having gotten the basic version working yesterday we could in no way get the plain text password version to work - I think tha'ts more the MOSQUITTO setup than the ESP-01s.
But as a demonstration of how useful the Eclipse setup is - I borrowed the port setting instructions from one setup, brouhgt them into the MQTT package and trapped messages "GPIO2 ON" and "GPIO2 OFF" and successfully had the MQTT turning a light on and off - also although the author had not actually used SENDING a message, I ran that and on receipt of a message had one ESP-01 send a message to another instantly and reliably... that is a MAJOR step forward. I'll detail this once we get to grips with passwords in MQTT as I would not dare use this without them.
To make MQTT work however we need a decent client for Android phones for testing as the only one that is out there "My MQTT" is awful, it does't reconnect to a server if it loses the signal, it can only talk to one server and can't store the details of another etc. I found a library for 10 euros for B4A (Basic for Android) which we're considering getting to make our own Android MQTT client with some presets etc, essential for testing. I just hope there are no last minute surprises with the MQTT code.. of and if anyone knows of an MQTT public server that is cheap/free and doesn't put silly limits or zero security, I'd love to hear from them - I fancy sending simple codes around ESP-01 boards with extras like a globally-subscribed TIME message etc. I could see these boards with i2c and MQTT attaching to a range of devices if only this works securely and reliably.
Did I trigger anyone off
alonewolfx2 wrote:I still think CHERTS's Eclipse esp IDE better than cygwin for Windows and it can compile even nodemcu.