mycontroller-org / MyControllerDevice

MyController supported MQTT ESP8266 library
http://www.mycontroller.org
Apache License 2.0
4 stars 4 forks source link

[Wemos] Unable to upgrade firmware #2

Closed wengjjpaul closed 7 years ago

wengjjpaul commented 7 years ago

Hi i tried to send an update firmware message to my wemos. Apparently, the message didnt get passed to mycontroller library. I think it has got to do with large message sending over mqtt. Any ideas? I already changed the pubsubclient to 512 bytes

jkandasa commented 7 years ago

@wengjjpaul what is the memory size of your wemos? Very first time you have to write MyControllerDevice firmware on your wemos via computer.

wengjjpaul commented 7 years ago

this should be the one https://www.wemos.cc/product/d1-mini-pro.html What do you mean MyControllerDevice firmware? I uploaded a bin file to MyControllerDevice server through the web

jkandasa commented 7 years ago

@wengjjpaul looks like you have enough memory. Ok, once you updated your firmware other functions are working as expected? Like node registered on MyController server?

wengjjpaul commented 7 years ago

@jkandasa Firmware can be uploaded through serial. Everything works fine like node registration. Only when i want to upload firmware through web, it failed. I checked the mqtt message it is sent out from the server but not received on the node.

jkandasa commented 7 years ago

@wengjjpaul Can you check Resource Log on server? I will show if you receive any error from your node.

wengjjpaul commented 7 years ago

@jkandasa nothing on the resource log

wengjjpaul commented 7 years ago

@jkandasa how do you build a firmware for mycontrollerserver?

jkandasa commented 7 years ago

@wengjjpaul Can you come on gitter chat? https://gitter.im/mycontroller-org/mycontroller

wengjjpaul commented 7 years ago

Issue resolved by editing PubSubClient.h

// MQTT_MAX_PACKET_SIZE : Maximum packet size
#ifndef MQTT_MAX_PACKET_SIZE
#define MQTT_MAX_PACKET_SIZE 512
#endif