Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish multiple sets of Data #14

Open
transistor1990 opened this issue Jan 16, 2020 · 2 comments
Open

Publish multiple sets of Data #14

transistor1990 opened this issue Jan 16, 2020 · 2 comments

Comments

@transistor1990
Copy link

Please Help me to convert multiple data into one and publish it to mqtt.

i have these data:
Temperature: [0-120]
Pump: [0-100]
Heater: [0-100]
Status: [0 or 1]
the format to send must be [Temperature,Pump,Heater,Status]
the "[" and "]" must be included in the message.

will i have to create a variable to collect all data into one like

message= "[" + Temperature + "," + Pump ... "]"
wmm.client->publish(topic, String(message).c_str(), true);

thanks

@transistor1990
Copy link
Author

I have managed to upload my code however an Error occurred on Serial Window.

Here is my Code:
`#include "secrets.h"
#include <WiFiMQTTManager.h>

// Button that will put device into Access Point mode to allow for re-entering WiFi and MQTT settings
#define RESET_BUTTON 0

WiFiMQTTManager wmm(RESET_BUTTON, AP_PASSWORD); // AP_PASSWORD is defined in the secrets.h file

void setup() {
Serial.begin(115200);
Serial.println(F("WiFiMQTTManager Basic Example"));
// set debug to true to get verbose logging
// wm.wm.setDebugOutput(true);
// most likely need to format FS but only on first use
// wmm.formatFS = true;
// optional - define the function that will subscribe to topics if needed
// wmm.subscribeTo = subscribeTo;
// required - allow WiFiMQTTManager to do it's setup
wmm.setup(SKETCH_NAME);
// optional - define a callback to handle incoming messages from MQTT
// wmm.client->setCallback(subscriptionCallback);

}

void loop() {
// required - allow WiFiMQTTManager to check for new MQTT messages,
// check for reset button push, and reconnect to MQTT if necessary
wmm.loop();

// optional - example of publishing to MQTT a sensor reading once a 1 minute
long now = millis();
if (now - wmm.lastMsg > 60000) {
wmm.lastMsg = now;
float temperature = 70; // read sensor here
float pump = 50;
float heater = 80;
float stat = 1;
String message = "[" + String(temperature) + "," + String(stat) + "," + String(heater) + "," + String(pump) + "]";
Serial.print("Temperature: ");
Serial.println(temperature);
char topic[100];
snprintf(topic, sizeof(topic), "%s%s%s", "sensor/", "d150", "/ctemperature");
wmm.client->publish(topic, String(message).c_str(), true);
}

}
`

and here is the Serial monitor:
����⸮�⸮⸮��⸮����������⸮��⸮⸮⸮⸮�⸮�⸮⸮�⸮�⸮��⸮⸮������⸮⸮��⸮��⸮⸮⸮⸮⸮�⸮�LN_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:36.940 -> configsip: 0, SPIWP:0xee 12:59:36.940 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:36.940 -> mode:DIO, clock div:1 12:59:36.940 -> load:0x3fff0018,len:4 12:59:36.940 -> load:0x3fff001c,len:1216 12:59:36.940 -> ho 0 tail 12 room 4 12:59:36.940 -> load:0x40078000,len:9720 12:59:36.940 -> ho 0 tail 12 room 4 12:59:36.940 -> load:0x40080400,len:6352 12:59:36.940 -> entry 0x400806b8 12:59:37.244 -> WiFiMQTTManager Basic Example 12:59:37.312 -> WMM: clientId: ESP_b4e62d9ee631 12:59:37.312 -> WMM: mounting FS... 12:59:37.417 -> WMM: mounted file system... 12:59:37.417 -> WMM: reading config file... 12:59:37.417 -> WMM: opened config file... 12:59:37.417 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:37.417 -> WMM: parsed json... 12:59:37.417 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:37.452 -> Core 1 register dump: 12:59:37.452 -> PC : 0x400013f9 PS : 0x00060630 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:37.452 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:37.452 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:37.452 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:37.488 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:37.488 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:37.488 -> 12:59:37.488 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:37.488 -> 12:59:37.488 -> Rebooting... 12:59:37.522 -> ets Jun 8 2016 00:22:57 12:59:37.522 -> 12:59:37.522 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:37.522 -> configsip: 0, SPIWP:0xee 12:59:37.522 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:37.522 -> mode:DIO, clock div:1 12:59:37.522 -> load:0x3fff0018,len:4 12:59:37.522 -> load:0x3fff001c,len:1216 12:59:37.522 -> ho 0 tail 12 room 4 12:59:37.522 -> load:0x40078000,len:9720 12:59:37.522 -> ho 0 tail 12 room 4 12:59:37.522 -> load:0x40080400,len:6352 12:59:37.522 -> entry 0x400806b8 12:59:37.834 -> WiFiMQTTManager Basic Example 12:59:37.904 -> WMM: clientId: ESP_b4e62d9ee631 12:59:37.904 -> WMM: mounting FS... 12:59:38.014 -> WMM: mounted file system... 12:59:38.014 -> WMM: reading config file... 12:59:38.014 -> WMM: opened config file... 12:59:38.014 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:38.014 -> WMM: parsed json... 12:59:38.014 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:38.014 -> Core 1 register dump: 12:59:38.014 -> PC : 0x400013f9 PS : 0x00060830 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:38.014 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:38.049 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:38.049 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:38.049 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:38.049 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:38.049 -> 12:59:38.049 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:38.084 -> 12:59:38.084 -> Rebooting... 12:59:38.084 -> ets Jun 8 2016 00:22:57 12:59:38.084 -> 12:59:38.084 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:38.084 -> configsip: 0, SPIWP:0xee 12:59:38.084 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:38.084 -> mode:DIO, clock div:1 12:59:38.084 -> load:0x3fff0018,len:4 12:59:38.084 -> load:0x3fff001c,len:1216 12:59:38.084 -> ho 0 tail 12 room 4 12:59:38.120 -> load:0x40078000,len:9720 12:59:38.120 -> ho 0 tail 12 room 4 12:59:38.120 -> load:0x40080400,len:6352 12:59:38.120 -> entry 0x400806b8 12:59:38.406 -> WiFiMQTTManager Basic Example 12:59:38.549 -> WMM: clientId: ESP_b4e62d9ee631 12:59:38.549 -> WMM: mounting FS... 12:59:38.621 -> WMM: mounted file system... 12:59:38.621 -> WMM: reading config file... 12:59:38.621 -> WMM: opened config file... 12:59:38.621 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:38.653 -> WMM: parsed json... 12:59:38.653 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:38.653 -> Core 1 register dump: 12:59:38.653 -> PC : 0x400013f9 PS : 0x00060830 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:38.653 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:38.698 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:38.698 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:38.698 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:38.734 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:38.734 -> 12:59:38.734 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:38.734 -> 12:59:38.734 -> Rebooting... 12:59:38.734 -> ets Jun 8 2016 00:22:57 12:59:38.734 -> 12:59:38.734 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:38.734 -> configsip: 0, SPIWP:0xee 12:59:38.734 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:38.734 -> mode:DIO, clock div:1 12:59:38.734 -> load:0x3fff0018,len:4 12:59:38.734 -> load:0x3fff001c,len:1216 12:59:38.734 -> ho 0 tail 12 room 4 12:59:38.734 -> load:0x40078000,len:9720 12:59:38.734 -> ho 0 tail 12 room 4 12:59:38.734 -> load:0x40080400,len:6352 12:59:38.734 -> entry 0x400806b8 12:59:39.048 -> WiFiMQTTManager Basic Example 12:59:39.123 -> WMM: clientId: ESP_b4e62d9ee631 12:59:39.123 -> WMM: mounting FS... 12:59:39.234 -> WMM: mounted file system... 12:59:39.234 -> WMM: reading config file... 12:59:39.234 -> WMM: opened config file... 12:59:39.234 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:39.234 -> WMM: parsed json... 12:59:39.234 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:39.234 -> Core 1 register dump: 12:59:39.234 -> PC : 0x400013f9 PS : 0x00060830 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:39.234 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:39.268 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:39.268 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:39.268 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:39.268 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:39.304 -> 12:59:39.304 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:39.304 -> 12:59:39.304 -> Rebooting... 12:59:39.304 -> ets Jun 8 2016 00:22:57 12:59:39.304 -> 12:59:39.304 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:39.304 -> configsip: 0, SPIWP:0xee 12:59:39.304 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:39.304 -> mode:DIO, clock div:1 12:59:39.337 -> load:0x3fff0018,len:4 12:59:39.337 -> load:0x3fff001c,len:1216 12:59:39.337 -> ho 0 tail 12 room 4 12:59:39.337 -> load:0x40078000,len:9720 12:59:39.337 -> ho 0 tail 12 room 4 12:59:39.337 -> load:0x40080400,len:6352 12:59:39.337 -> entry 0x400806b8 12:59:39.616 -> WiFiMQTTManager Basic Example 12:59:39.687 -> WMM: clientId: ESP_b4e62d9ee631 12:59:39.687 -> WMM: mounting FS... 12:59:39.793 -> WMM: mounted file system... 12:59:39.793 -> WMM: reading config file... 12:59:39.793 -> WMM: opened config file... 12:59:39.793 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:39.793 -> WMM: parsed json... 12:59:39.793 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:39.830 -> Core 1 register dump: 12:59:39.830 -> PC : 0x400013f9 PS : 0x00060830 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:39.830 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:39.830 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:39.830 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:39.866 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:39.866 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:39.866 -> 12:59:39.866 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:39.866 -> 12:59:39.866 -> Rebooting... 12:59:39.902 -> ets Jun 8 2016 00:22:57 12:59:39.902 -> 12:59:39.902 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:39.902 -> configsip: 0, SPIWP:0xee 12:59:39.902 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:39.902 -> mode:DIO, clock div:1 12:59:39.902 -> load:0x3fff0018,len:4 12:59:39.902 -> load:0x3fff001c,len:1216 12:59:39.902 -> ho 0 tail 12 room 4 12:59:39.902 -> load:0x40078000,len:9720 12:59:39.902 -> ho 0 tail 12 room 4 12:59:39.902 -> load:0x40080400,len:6352 12:59:39.902 -> entry 0x400806b8 12:59:40.211 -> WiFiMQTTManager Basic Example 12:59:40.277 -> WMM: clientId: ESP_b4e62d9ee631 12:59:40.277 -> WMM: mounting FS... 12:59:40.383 -> WMM: mounted file system... 12:59:40.383 -> WMM: reading config file... 12:59:40.383 -> WMM: opened config file... 12:59:40.383 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:40.383 -> WMM: parsed json... 12:59:40.383 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:40.383 -> Core 1 register dump: 12:59:40.383 -> PC : 0x400013f9 PS : 0x00060830 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:40.418 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:40.418 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:40.418 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:40.418 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:40.418 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:40.453 -> 12:59:40.453 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:40.453 -> 12:59:40.453 -> Rebooting... 12:59:40.453 -> ets Jun 8 2016 00:22:57 12:59:40.453 -> 12:59:40.453 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:40.453 -> configsip: 0, SPIWP:0xee 12:59:40.453 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:40.490 -> mode:DIO, clock div:1 12:59:40.490 -> load:0x3fff0018,len:4 12:59:40.490 -> load:0x3fff001c,len:1216 12:59:40.490 -> ho 0 tail 12 room 4 12:59:40.490 -> load:0x40078000,len:9720 12:59:40.490 -> ho 0 tail 12 room 4 12:59:40.490 -> load:0x40080400,len:6352 12:59:40.490 -> entry 0x400806b8 12:59:40.772 -> WiFiMQTTManager Basic Example 12:59:40.840 -> WMM: clientId: ESP_b4e62d9ee631 12:59:40.840 -> WMM: mounting FS... 12:59:40.946 -> WMM: mounted file system... 12:59:40.946 -> WMM: reading config file... 12:59:40.946 -> WMM: opened config file... 12:59:40.946 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:40.946 -> WMM: parsed json... 12:59:40.946 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:40.980 -> Core 1 register dump: 12:59:40.980 -> PC : 0x400013f9 PS : 0x00060a30 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:40.980 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:40.980 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:40.980 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:41.015 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:41.015 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:41.015 -> 12:59:41.015 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:41.015 -> 12:59:41.015 -> Rebooting... 12:59:41.053 -> ets Jun 8 2016 00:22:57 12:59:41.053 -> 12:59:41.053 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:41.053 -> configsip: 0, SPIWP:0xee 12:59:41.053 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:41.053 -> mode:DIO, clock div:1 12:59:41.053 -> load:0x3fff0018,len:4 12:59:41.053 -> load:0x3fff001c,len:1216 12:59:41.053 -> ho 0 tail 12 room 4 12:59:41.053 -> load:0x40078000,len:9720 12:59:41.053 -> ho 0 tail 12 room 4 12:59:41.053 -> load:0x40080400,len:6352 12:59:41.053 -> entry 0x400806b8 12:59:41.335 -> WiFiMQTTManager Basic Example 12:59:41.439 -> WMM: clientId: ESP_b4e62d9ee631 12:59:41.439 -> WMM: mounting FS... 12:59:41.515 -> WMM: mounted file system... 12:59:41.515 -> WMM: reading config file... 12:59:41.515 -> WMM: opened config file... 12:59:41.515 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:41.549 -> WMM: parsed json... 12:59:41.549 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:41.549 -> Core 1 register dump: 12:59:41.549 -> PC : 0x400013f9 PS : 0x00060a30 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:41.549 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:41.549 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:41.583 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:41.583 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:41.583 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:41.583 -> 12:59:41.583 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:41.620 -> 12:59:41.620 -> Rebooting... 12:59:41.620 -> ets Jun 8 2016 00:22:57 12:59:41.620 -> 12:59:41.620 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:41.620 -> configsip: 0, SPIWP:0xee 12:59:41.620 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:41.620 -> mode:DIO, clock div:1 12:59:41.620 -> load:0x3fff0018,len:4 12:59:41.620 -> load:0x3fff001c,len:1216 12:59:41.620 -> ho 0 tail 12 room 4 12:59:41.620 -> load:0x40078000,len:9720 12:59:41.620 -> ho 0 tail 12 room 4 12:59:41.620 -> load:0x40080400,len:6352 12:59:41.620 -> entry 0x400806b8 12:59:41.940 -> WiFiMQTTManager Basic Example 12:59:42.015 -> WMM: clientId: ESP_b4e62d9ee631 12:59:42.015 -> WMM: mounting FS... 12:59:42.084 -> WMM: mounted file system... 12:59:42.084 -> WMM: reading config file... 12:59:42.084 -> WMM: opened config file... 12:59:42.120 -> {"friendly_name":"ART","mqtt_server":"35.232.223.139","mqtt_port":"1883"} 12:59:42.120 -> WMM: parsed json... 12:59:42.120 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. 12:59:42.120 -> Core 1 register dump: 12:59:42.120 -> PC : 0x400013f9 PS : 0x00060830 A0 : 0x800d357d A1 : 0x3ffb1db0 12:59:42.120 -> A2 : 0x3ffc1180 A3 : 0x00000000 A4 : 0x000000ff A5 : 0x0000ff00 12:59:42.153 -> A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d80 12:59:42.153 -> A10 : 0x3ffc1180 A11 : 0x3f40158d A12 : 0x00000000 A13 : 0x00000001 12:59:42.153 -> A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000008 EXCCAUSE: 0x0000001c 12:59:42.153 -> EXCVADDR: 0x00000000 LBEG : 0x400013f9 LEND : 0x4000140d LCOUNT : 0xffffffff 12:59:42.153 -> 12:59:42.153 -> Backtrace: 0x400013f9:0x3ffb1db0 0x400d357a:0x3ffb1dc0 0x400d37a6:0x3ffb1e20 0x400d1665:0x3ffb1f70 0x400e6d23:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0 12:59:42.188 -> 12:59:42.188 -> Rebooting... 12:59:42.188 -> ets Jun 8 2016 00:22:57 12:59:42.188 -> 12:59:42.188 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 12:59:42.188 -> configsip: 0, SPIWP:0xee 12:59:42.188 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 12:59:42.188 -> mode:DIO, clock div:1 12:59:42.188 -> load:0x3fff0018,len:4 12:59:42.188 -> load:0x3fff001c,len:1216 12:59:42.188 -> ho 0 tail 12 room 4 12:59:42.223 -> load:0x40078000,len:9720 12:59:42.223 -> ho 0 tail 12 room 4 12:59:42.223 -> load:0x40080400,len:6352 12:59:42.223 -> entry 0x400806b8

@transistor1990
Copy link
Author

Tried to upload the sample code "basic" and got the same error. any idea on why i got this error,
i just added username password credentials on .cpp file and .h file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant