Huzzah feather arduino client documentation problem


#1

I have googled and yahooed and even cuil searched, but I am turning to you the forum to solve a problem that is most likely beneath you all!

after purchasing a huzzah feather, and following this guide diligently, with great success.
https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/using-arduino-ide

I moved onto this guide on the thinger website and have seen no success :frowning:
http://docs.thinger.io/arduino/#supported-hardware-esp8266-nodemcu

After uploading this code, I receive garble at 115200 baud and the following bootlog from 74880 buad.

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld

Some information:

Given this is my first foray into a board other than arduino UNO I understand my knowledge here is pretty limited, as I am keen to learn, any pointers RE this problem (as opposed to outright solutions) would also be appreciated!

Best
Joe


#2

Hi @cafeciaojoe, your setup seems to be fine! I suppose that you tried basic examples like blinking a led or reading a sensor, is it? Just to confirm that the code you upload to the device is ok. If this is ok, what is the code your are using for connecting the huzza to the platform? You should be able to use the ESP8266 example from the library (Examples->thinger.io->ESP8266). Something like:

#include <ESP8266WiFi.h>
#include <ThingerESP8266.h>

#define USERNAME "your_user_name"
#define DEVICE_ID "your_device_id"
#define DEVICE_CREDENTIAL "your_device_credential"

#define SSID "your_wifi_ssid"
#define SSID_PASSWORD "your_wifi_ssid_password"

ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

void setup() {
  pinMode(BUILTIN_LED, OUTPUT);

  thing.add_wifi(SSID, SSID_PASSWORD);

  // digital pin control example (i.e. turning on/off a light, a relay, configuring a parameter, etc)
  thing["led"] << digitalPin(BUILTIN_LED);

  // resource output example (i.e. reading a sensor value)
  thing["millis"] >> outputValue(millis());

  // more details at http://docs.thinger.io/arduino/
}

void loop() {
  thing.handle();
}

Hope it helps!


#3

Yep that is the exact code I have used. Still just locks up.

Once the code has loaded, The RED LED on board is on constantly.
this is connected to pin #0
"Pin #0 red LED for general purpose blinking" from the adadfruit website.
Could it be that it hasnt left boot mode or something?

“Pin #2 blue LED for bootloading debug & general purpose blinking” is also from the website, so I am really confused!

Cheers!

Joe


#4

Just had a thought this morning whilst waiting for the bus.

Could it be the library, causing it to remain in boot mode?

The blink sketch works fine, and the wifi test sketch from the adafruit website works fine too.

Might compare elements from each sketch.
Or even the thingerwifi.h library?


#5

Can you try this one?

#include <ESP8266WiFi.h>
#include <ThingerESP8266.h>

#define USERNAME "your_user_name"
#define DEVICE_ID "your_device_id"
#define DEVICE_CREDENTIAL "your_device_credential"

#define SSID "your_wifi_ssid"
#define SSID_PASSWORD "your_wifi_ssid_password"

ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

void setup() {
  thing.add_wifi(SSID, SSID_PASSWORD);

  // resource output example (i.e. reading a sensor value)
  thing["millis"] >> outputValue(millis());

  // more details at http://docs.thinger.io/arduino/
}

void loop() {
  thing.handle();
}

Just to be sure we are not rebooting the device with the led GPIO…


#6

Ok so by removing the Builtin LED output, had no difference.

same garble out of the serial monitor. at 115200 baud.

at 74880 baud I get the same boot message as before.

In a second test I also added serial.begin(115200); to no avail.


#7

Apparently, the “rst cause:2” means reset button??
is that a reset button failure?

This esp8266 link states the GPI0 pin is floating. whan the boot message is as follows.

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

… so confused