I bought a nodeMCU 8266 and I'm hoping that it can replace my bulkier UNO+WiFi 101.
I'm getting an error when I compile: Error: unknown opcode or format name 'jmp'
I'm using it in void SoftReset() function:
void softReset() {
delay(1000);
asm volatile (" jmp 0");
}
This reset works great with my Uno+101 setup but, for whatever reason, doesn't like the ESP8266. I removed the WiFi101 library and added the ESP8266 WiFi libraries. That has been the only change.
Can you please help me understand why I'm receiving this error?
EDIT: I have read this SO answer but the "syntactical sugar" didn't work for me.
I am also perusing various ESP8266 sites but they are not as well managed as SE/SO and answers are tough to find.