RC-Switch Exception with ESP8266

Hey guys,
when i use “SwitchOn” or “SwitchOff” from the RC-Switch Libary with a Intechar, i get the Exception(28) in the Serial Monitor. The 433Mhz Sender works fine without a Variable. I tested it with other datatypes like long or string, but the IDE says that the “Send” function didnt accept these. I Hope someone can help me with the Problem.
Sry for my bad English and greetings from Walldorf in Germany

Here my test Coding

#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();

void setup() {
    Serial.begin(115200);
    mySwitch.enableTransmit(0);
    int systemadress = 11111;
    int deviceadress = 10000;
    mySwitch.switchOn(systemadress, deviceadress);
}
Exception (28):
epc1=0x40201ea2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffef370 end: 3ffef560 offset: 01a0

>>>stack>>>
3ffef510:  00000001 feefeffe feefeffe feefeffe  
3ffef520:  feefeffe feefeffe feefeffe 40201ecc  
3ffef530:  3fffdad0 00000000 3ffee2e8 40201c1e  
3ffef540:  feefeffe feefeffe 3ffee524 40202230  
3ffef550:  feefeffe feefeffe 3ffee540 40100114  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)
int systemadress = 11111;
    int deviceadress = 10000;

I’m not familiar with this library, but are those values supposed to be 5 bit binary?

These are only the dip switch adresses to call the 433Mhz socket,but if someone is here who knows better I'm always open for improvements

11111 is a fourteen bit number.

Hallo
In the RCSwitch Library the system address and device address values are sent with char arrays not integers.

Example: mySwitch.switchOn(“11111”, “00010”);

Try Instead:

    static char systemadress[] = "11111";
    static char deviceadress[] = "10000";
    mySwitch.switchOn(systemadress, deviceadress)

or just mySwitch.switchOn("11111","10000");

Was this all the code or just the setup?

Viel Glück

thank you very verry much, it works :slight_smile:

no this is only a snippet of my code, i use this as an mqqt 433mhz sender