Why is this crashing? Using https://www.amazon.com/gp/product/B07DKD79Y9/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
How do I understand these errors?
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400014fd PS : 0x00060630 A0 : 0x800de05a A1 : 0x3ffb1d90
A2 : 0x00004e20 A3 : 0x00004e1c A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d50
A10 : 0x00000001 A11 : 0x40085dbc A12 : 0x00000001 A13 : 0x00000001
A14 : 0x00060620 A15 : 0x00000000 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00004e20 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000
Backtrace: 0x400014fd:0x3ffb1d90 0x400de057:0x3ffb1da0 0x400de17f:0x3ffb1ed0 0x400dddca:0x3ffb1ef0 0x400d2190:0x3ffb1f70 0x400e067b:0x3ffb1fb0 0x4008ef75:0x3ffb1fd0
Rebooting…
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10312
load:0x40080400,len:6432
entry 0x400806a4
I’m doing the byteduino project any my AP doesn’t have a password:
// Byteduino Cosigner Device - papabyte.com
// MIT License
#include <Arduino.h>
#include <byteduino.h>
#if defined (ESP32)
#include <WiFiMulti.h>
WiFiMulti WiFiMulti;
#endif
#if defined (ESP8266)
#include <ESP8266WiFiMulti.h>
#include <ESP8266WebServer.h>
ESP8266WiFiMulti WiFiMulti;
#endif
WiFiServer server(80);
void sendWebpage(WiFiClient &client);
void setup() {
Serial.begin(115200);
while (!Serial)
continue;
setDeviceName(“Byteduino”);
setHub(“byteball.org/bb”);
//don’t forget to change the keys below!
setPrivateKeyM1(“PRIVATEKEY”);
setExtPubKey(“PUBKEY”);
setPrivateKeyM4400(“ANOTHERPRIVATEKEY”);
WiFi.softAPdisconnect(true);
WiFiMulti.addAP(“myapname”, “”);
while (WiFiMulti.run() != WL_CONNECTED) {
delay(1000);
Serial.println(F(“Not connected to wifi yet”));
}
Serial.println(WiFi.localIP());
server.begin();
}
void sendWalletsJson(WiFiClient &client) {
client.flush();
client.print(getWalletsJsonString());
}
void sendPairedDevicesJson(WiFiClient &client) {
client.flush();
client.print(getDevicesJsonString());
}
void sendDeviceInfosJson(WiFiClient &client) {
client.flush();
client.print(getDeviceInfosJsonString());
}
void sendOnGoingSignatureJson(WiFiClient &client) {
client.flush();
client.print(getOnGoingSignatureJsonString());
}
void loop() {
// put your main code here, to run repeatedly:
byteduino_loop();
WiFiClient client = server.available();
if (client) {
// an http request ends with a blank line
boolean currentLineIsBlank = true;
int i = 0;
char bufferClient[300];
char textToSign[45];
while (client.connected()) {
while (client.available()) {
char c = client.read();
if (i < 300) {
bufferClient[i] = c;
i++;
}
// if you've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so you can send a reply
if (c == '\n' && currentLineIsBlank) {
// Here is where the POST data is.
int j = 0;
while (client.available())
{
textToSign[j] = client.read();
j++;
}
textToSign[44] = 0x00;
Serial.println(textToSign);
if (strstr(bufferClient, "ongoing_signature.json") != nullptr) {
sendOnGoingSignatureJson(client);
} else if (strstr(bufferClient, "paired_devices.json") != nullptr) {
sendPairedDevicesJson(client);
} else if (strstr(bufferClient, "device_infos.json") != nullptr) {
sendDeviceInfosJson(client);
} else if (strstr(bufferClient, "wallets.json") != nullptr) {
sendWalletsJson(client);
} else if (strstr(bufferClient, "refuse_signature") != nullptr) {
refuseTosign(textToSign);
Serial.println("deny signature");
} else if (strstr(bufferClient, "confirm_signature") != nullptr) {
acceptToSign(textToSign);
Serial.println("confirm signature");
} else if (strstr(bufferClient, "favico") == nullptr ) {
sendWebpage(client);
}
client.stop();
}
else if (c == '\n') {
// you're starting a new line
currentLineIsBlank = true;
}
else if (c != '\r') {
// you've gotten a character on the current line
currentLineIsBlank = false;
}
}
}
}
}