adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
573 stars 291 forks source link

Fona MQTT example with esp8266 #90

Closed kamrulroky closed 7 years ago

kamrulroky commented 7 years ago

hello, I am working on a project that includes sim800l accessing adafruit MQTT .it works fine with an arduino .my project need to use esp8266 12E with sim800l. I know esp8266 can be use standalone for MQTT but i need to use it as mcu for gsm module. Fona MQTT example shows this error"Error compiling for board NodeMCU 1.0 (ESP-12E Module)" . I am new to arduino or esp8266 , i hope this is a relevant problem.What am I doing wrong here,is there any alternative way to work with esp8266 with sim800l for accessing Adafruit MQTT?

Nakul93 commented 7 years ago

Hello @kamrulroky , I have used SIM800 with NodeMCU, it works fine. What is the exact error that you are getting. Please share the screenshot

kamrulroky commented 7 years ago

Hello @Nakul93 , Have you tried to upload mqtt_fona sketch to the nodemcu? I have added esp board on "FONAPlatStd.h " too. but its showing something is wrong with sleepy dog library. here the error message

error message

i have uploaded just the basic mqtt_fona example with the mqtt credentials ,can you help me please , how you get them working properly?

Nakul93 commented 7 years ago

SleepyDog lib is not supported by esp8266. Remove the Sleepydog lib and also remove all the Watchdog.reset lines in the code. Then it should definitely work.

kamrulroky commented 7 years ago

Thanks Nakul93, removing sleepy dog does get rid off the error but now the nodemcu resetting itself.

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

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

any thoughts on that?? can you share me how you used them to access MQTT?

Nakul93 commented 7 years ago

Remove while (!Serial); line from setup and check

kamrulroky commented 7 years ago

@Nakul93 Thank you so much man, it works perfect now.

gunaone commented 4 years ago

hi all .....did i remove fonahelper? i get error