Hi, I have been working with the esp32 development board from Doit and the Wisol SFM10R1 module for sigfox communication. With this module I have not had any problem to make it work. Now I have tried to use an esp32 development board from the manufacturer Firebeetle and I am not able to get the softwareserial to work. I tried to use hardwareserial and got the following message on my console:
"Guru Meditation Error: Core 1 panic'ed (IllegalInstruction) Exception was unhandled."
Any idea how to make it work? I'm shocked that it doesn't work because the development boards are practically the same
Attached is the code I used on the manufacturer's Doit development board
#include <SoftwareSerial.h>
#define RxNodePin 12
#define TxNodePin 13uint8_t sigfoxMsg[12];
SoftwareSerial Sigfox(RxNodePin, TxNodePin);void setup() {
Serial.begin(115200);
Sigfox.begin(9600);
delay(300);
Serial.print("Device ID: " + getID());
Serial.print("Device PAC Number: " + getPAC());
delay(100);
}void loop() {
memcpy(sigfoxMsg, &temperatura, sizeof(temperatura));
sendMessage(mensajeSigfox, 8);
}String getID () {
String deviceId = "";
char sigfoxBuffer;
Sigfox.print("AT$I=10\r");
while (!Sigfox.available()){
delay(20);
}while(Sigfox.available()){
sigfoxBuffer = Sigfox.read();
deviceId += sigfoxBuffer;
delay(20);
}
return deviceId;
}String getPAC (){
String pacNumber = "";
char sigfoxBuffer;// to WISOL to GET PAC number
Sigfox.print("AT$I=11\r");
while (!Sigfox.available()){
delay(10);
}
while(Sigfox.available()){
sigfoxBuffer = Sigfox.read();
pacNumber += sigfoxBuffer;
delay(10);
}
return pacNumber;
}String sendMessage(uint8_t sigfoxMsg[], int bufferSize) {
String status = "";
char sigfoxBuffer;Sigfox.print("AT$SF=");
for(int i= 0;i<bufferSize;i++){if (sigfoxMsg*<0x10) *
- {*
- Sigfox.print("0");*
- }*
_ Sigfox.print(String(sigfoxMsg*, HEX));_
_ }_
_ Sigfox.print("\r");_
_ while (!Sigfox.available()){_
_ delay(10);_
_ }_
_ while(Sigfox.available()){_
_ sigfoxBuffer = (char)Sigfox.read();_
_ status += sigfoxBuffer;_
_ delay(10);_
_ }_
_ return status;_
_}_
_[/quote]*_


