We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
void report() { JsonDocument jDocReport; //sensors.requestTemperatures(); // Or else initial value of 85. int t_flow = 40 + (n % 7); //sensors.getTemp(1); jDocReport["flow"] = t_flow; int t_return = 35 + (n % 7); //sensors.getTemp(0); jDocReport["return"] = t_return; jDocReport["set"] = tCurrent; char payload[96]; unsigned int length = serializeJson(jDocReport, payload); Serial.printf("mqtt_client.publish length %d.\n", length); Serial.print("Payload: "); Serial.println(payload); bool p = mqtt_client.publish("zigbee2mqtt/Home/Temperature/ESP32", (byte*)payload, length, false); Serial.printf("Reported (h: %d, l: %d, w: %d) (success: %s). Value: ", p ? "yes" : "no", heat_h, heat_l, heat_w); serializeJson(jDocReport, Serial); Serial.println(); }
Output
mqtt_client.publish length 32. Payload: {"flow":41,"return":36,"set":40} Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled. Core 0 register dump: MEPC : 0x40058eb6 RA : 0x420a195a SP : 0x3fc9c4a0 GP : 0x3fc8de00 TP : 0x3fc7b680 T0 : 0x4005890e T1 : 0x10000000 T2 : 0x6573222c S0/FP : 0x00000000 S1 : 0x00000000 A0 : 0x00000000 A1 : 0xffffffff A2 : 0x0000001f A3 : 0x7f7f7f7f A4 : 0x00000000 A5 : 0x00000004 A6 : 0xa0000000 A7 : 0x0000000a S2 : 0x0000005a S3 : 0x00000003 S4 : 0x00000004 S5 : 0xffffffff S6 : 0x3fc9c564 S7 : 0x0000000a S8 : 0x00000073 S9 : 0x00000000 S10 : 0x00000003 S11 : 0x00000000 T3 : 0x00000000 T4 : 0x00000000 T5 : 0xc9277cd7 T6 : 0x5b077d30 MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000005 MTVAL : 0x00000000 MHARTID : 0x00000000 Stack memory: 3fc9c4a0: 0x00000000 0x00000000 0x00000058 0x3fc9cba8 0x3fc9c8c8 0x3c0c03e3 0x00000000 0x00000000 3fc9c4c0: 0x00000000 0x00000000 0x00000000 0x00000001 0x00000037 0x00000001 0x00000000 0x3c0c020c 3fc9c4e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x3c0dea9c 0x00000000 0x3c0de920 0x3c0c02a8 3fc9c500: 0x00000002 0x3fc9c59e 0x00000002 0x3c0c020c 0x3c0dead0 0x00000000 0x00000000 0x3fc9c9e8 3fc9c520: 0x00000001 0x00000000 0x00000064 0x00000002 0x00000004 0x00000000 0x3c0c01a5 0x00000000 3fc9c540: 0x00000000 0x3c0c018b 0x0000001a 0x420a2610 0x3fc9c55c 0x00000001 0x0000000c 0x3c0c03d5 3fc9c560: 0x0000000c 0x3fc9c5ff 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x00000001 3fc9c580: 0x00000031 0x00000002 0x00000000 0x3c0c020c 0x00000000 0x00000000 0x00000000 0x3034abe8 3fc9c5a0: 0x3c0dea9c 0x00000000 0x3c0de920 0xbaad5678 0x00000016 0x00000054 0x3fc9d1e8 0x4038ad76 3fc9c5c0: 0x00000058 0x00000054 0x00000804 0x3fc9ca8c 0x3c0dea9c 0x00000000 0x000de920 0x00000000 3fc9c5e0: 0x00000001 0x00000000 0x3fc9d1f0 0x40386be0 0x3fc96000 0x30310030 0x32343730 0x30333230 3fc9c600: 0xffffffff 0x00000000 0x00000000 0x3c0c018b 0x0000001a 0x3fc9c6ae 0x00000002 0x40387196 3fc9c620: 0x00000028 0xffffffff 0x3fc9d1f0 0x4341ffff 0x00000024 0x00000000 0x3fc95d44 0xc0380000 3fc9c640: 0x00000000 0x3fc96000 0x00060000 0xc0380000 0x3fc95f90 0x00000008 0x3fc95f90 0x4038abe8 3fc9c660: 0x00000000 0x3fc96000 0x00060000 0xbaad5678 0x3fc95f90 0x00000008 0x3fca8644 0x4038ad76 3fc9c680: 0x3c0c0348 0x00000008 0x00001800 0x40381b74 0x00000000 0x0000000c 0x3fca8610 0x00000000 3fc9c6a0: 0x00000000 0x40386bfe 0x3fc9c720 0x3034de00 0x00000000 0x4005890e 0x0000000f 0xffffffff 3fc9c6c0: 0x00000013 0x00000000 0x00000001 0x00000001 0x00000019 0x00000004 0x3fc96000 0x600c2000 3fc9c6e0: 0x000000ac 0x00000000 0x3fc9c76c 0x00000000 0x3fc96000 0x00000000 0x00000000 0xc0380000 3fc9c700: 0x00000000 0x3fc96000 0x00060000 0xc0380000 0x40389070 0x40386bfe 0x3fc9d0a0 0x403866aa 3fc9c720: 0x40389070 0x40386bfe 0x3fc9c7a0 0x3fc8de00 0x00000028 0x4005890e 0x4038c54a 0x00000000 3fc9c740: 0x3fc9d2ec 0x00000000 0x00000001 0x00000001 0x3fc9c800 0x00000004 0x3fc96000 0x600c2000 3fc9c760: 0xfa000000 0x00000003 0x3fc9d0a0 0x403866aa 0x40389070 0x40386bfe 0x3fc9c7f0 0x3fc8de00 3fc9c780: 0x3fc7b680 0x4005890e 0x4038c54a 0x00000000 0x3fc9d2ec 0x00000000 0x00000001 0x00000001 3fc9c7a0: 0x3fc9c850 0x00000004 0x3fc9d0a0 0x40387196 0x00000000 0x00000000 0x3fc9d0a0 0xffffffff 3fc9c7c0: 0x00000000 0x0000004f 0x3fc9d0a0 0x403866aa 0x00000000 0x00000000 0x3fc9d0a0 0x40386be0 3fc9c7e0: 0x40389070 0x40386bfe 0x3fc9c860 0x3fc8de00 0x3fc7b680 0x4005890e 0x40387882 0x6573222c 3fc9c800: 0x3fc9d2ec 0x00000000 0x00000001 0x00000001 0x3fc9c8c0 0x00000004 0x3fc96000 0x600c2000 3fc9c820: 0x00000bb8 0x0000004c 0x3fc9c8ac 0x00000000 0x3fcaa197 0x00010000 0x00000009 0x0000004c 3fc9c840: 0x0000004c 0x000f4240 0x00001005 0x00000000 0x3fcaa9f4 0x00000000 0xc9277cd7 0x5b077d30 3fc9c860: 0x3fc8d878 0x3fc91adc 0x3fca9728 0x40387196 0x3fc9c990 0x3fc9c988 0x00000000 0xffffffff 3fc9c880: 0x00000000 0x00000031 0x3fcaa197 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: a538196f75eb6679 Rebooting... ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT) Saved PC:0x40048b82 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5820,len:0x1058 load:0x403cc710,len:0x8a8 load:0x403ce710,len:0x2fac entry 0x403cc710
The text was updated successfully, but these errors were encountered:
The parameters to Serial.printf("Reported are in the wrong order for the format specifiers.
Serial.printf("Reported
Been looking at this for hours 🤦
Sorry, something went wrong.
No branches or pull requests
Output
The text was updated successfully, but these errors were encountered: