Does anyone know what I’m doing wrong here… I have the full Eclipse set up on my Windows PC and have already imported the MQTT project and tested it – lovely. Like other projects you end up with CLEAN, ALL and FLASH controls to wipe old firmware binaries, compile new code and FLASH the ESP8266 modules – all very civilised and easy to use. I did exactly the same installation with the node_mcu (ie LUA) software – and… nothing – no apparent way to do any of this within the Eclipse environment. Did I do something really stupid here? Hopefully, getting a solution in here will help others as well. Everything was installed from scratch on my laptop this morning so there is no old code here. It is all the latest downloads – and until Lua all went splendidly smoothly following instructions I’ve referred to in earlier blogs.
Examples – AT code – works fine.
Example – MQTT project imported – works fine
See MQTT above – straightforward installation – the 3 buttons ALL, CLEAN and FLASH appear just like the other projects… but in the case of NODE_MCU….
Oh dear.- no buttons!
Also – if someone knows how to rectify this.. they might also be able to answer another question. Somewhere in the above project – I guess in the INCLUDE folder – is the 0.9.5 SDK. In the other examples in ECLIPSE the best we have is the 0.9.4 SDK. So, for example, what would one need to copy across, into a copy of the AT example from the nodemcu-firmware example, to be then able to compile the AT example with 0.9.5 SDK?
Any easy tips/answers in there I suspect will help a lot of people as well as myself. I could find all of this out with a lot of wasted time and experimenting, I’m hoping someone has done all of this.
I noted this item on EBAY showing the ESP-03 at well under £2 each.. Not sure about those ceramic antenna – anyone any experience of how they compare to the excellent PCB version on the ESP-01 ??
Another item of note – I see there is a new LUA update out – looking forward to checking that out at the weekend and I’ll do a write up – apparently it’s based on the 0.9.5 version of the SDK. Is this out of BETA – and if it is does anyone have the link? And any updated documentation so we know what’s changed? I have to say that Espressif don’t do the best job when it comes to promoting their own updates.
That’s it for now – later this week I plan to put together a temperature sensor using only the ESP-01 and even consider sticking a lithium and a solar cell on it (I know, not the best time of the year for solar power) – more to have a permanent test rig than anything else sending out MQTT data. The /TIME/ message I set to run every 10 seconds on my PC 3 days ago using Really Small Message Broker set up as a service, and MQTT-spy – is still ticking away (I can test it in meetings using another copy of MQTT-spy. You might have noticed I did some frighteningly fast message blasting and everything help up ok. I expect soon to have MQTT traffic running back and forth – I’ve at least 3 locations that need external solar powered temperature and humidity monitoring. MQTT-spy is due shortly to get some more improvements – looking forward to it – as for RSMB – I can’t think of anything wrong with it!
Oh firstly, after filling in the form with Espressif to keep commercial confidentiality about their SDK info which I’m still waiting for – I discover it’s freely available here – http://www.esp8266.com/viewtopic.php?f=5&t=449 granted that IS for the 0.9.2 version which is a tad old now..
Tonight as I get ready for a round of meetings in London which will severely hamper my research until later this week, I’m struggling with MQTT-SPY. I should say I’ve had some communication with the designer and he’s been MORE than helpful – he’s added a demo time script, he’s changed the XML format slightly so it’s readable for the likes of Notepad++ all of which is great, but I want some pre-programmed scripts to send out publications – and can I HELL figure out how to use them. I’m hoping for an update to the WIKI on that otherwise excellent free program. If nothing else I hope to set off a script every minute to transmit the time on “/time” and I can keep an eye on it while I’m away on business to check for reliability.
I didn’t get a chance today to update the ESP-12, now that the MQTT code works so well in the Windows environment, to add port operations to that as I thought I might use a couple of pins of the board as indicators instead of all that serial info. All I want coming out of the serial is MQTT messages.
My unashamedly Windows-only ESP8266 Facebook page is doing well and how has over 170 followers which is nice.
Not much else is new. Quite interesting that people made so much noise about the Lua interpreter code going open source – the guys did that and what’s happening? Not a lot right now.. the Frankenstein code? Nothing for a month…. the beta of the SDK? Nothing new. Maybe everyone’s having the week off after Christmas.
Here’s hoping for lots of new developments over the weekend. Something I don’t really understand about the Lua code – it’s constantly short of RAM – and yet, those who are trying to understand the chip say that it has a LOT more DRAM than it has RAM… so I wonder if any of that is being used.. perhaps that will remain one of life’s mysteries.
And on a completely unrelated subject – if you’ve been struggling with your old Nexus 7 (2012) – the 5.01 Android update is out - installed it today (with a lot of wheel-re-inventing) – and.. yes, I think it speeds it up again.
After a little conversation back and forth, the MQTT code now works and the Really Small Message Broker is running just fine as a service, no surprises with the ESP-12 and tomorrow if time permits I’ll import some port control into the package and use a couple of those handy port bits to give out status information. Tackling input into the serial port is another matter – no idea how to do that yet but how card can it be.
It really would help if Espressif would release the SDK technical docs as I asked. You’d think they didn’t want to sell any chips!
So I wired the ESP-12 onto a little board and had my first attempt at programming today. I can clarify the following:
Correction – see where it says “GPIO1 – that should be GPIO2” – some day I’ll keep my originals.
The board needs 3v3, not 5v. The input to the RXD pin should be level-shifted if you’re using a 5v Arduino or similar. As with other boards, the CH_PD pin needs to be permanently tied to VCC – but in addition it seems that GPIO15 needs to be tied to ground – not sure the point of bringing it out! For programming, GPIO0 should be grounded but when not programming you can use if for general IO.
The board programmed up just fine and seems as sensitive as others. Next stop will be to try out using the remaining pins.