05-10-2019, 10:33 PM
@Tim: That's it, thanks. Now I get the expected echo. I see now other commands from the REST-API also seem to work. Great!
@Kent: Thank you. A Pi seems a bit overkill for this purpose. Plus I'm better in programming microcontrollers than Pi's
I'm not there yet though, sending a new http request at every click of the encoder is not very practical. The http requests interferes with the rotary encoder code so it sometimes goes up when it should go down. So I'll have to find a way to 'buffer' the steps and send the total to Moode during idle time. Hence the desire to add a small (oled, 128x64px) display to get some feedback about what's happening. And because I love eye-candy of course. It's connected i2c to the esp.
When the code is to my liking I will report back, hopefully with pictures. But this came up in between other projects so it might take a while.
@Kent: Thank you. A Pi seems a bit overkill for this purpose. Plus I'm better in programming microcontrollers than Pi's
I'm not there yet though, sending a new http request at every click of the encoder is not very practical. The http requests interferes with the rotary encoder code so it sometimes goes up when it should go down. So I'll have to find a way to 'buffer' the steps and send the total to Moode during idle time. Hence the desire to add a small (oled, 128x64px) display to get some feedback about what's happening. And because I love eye-candy of course. It's connected i2c to the esp.
When the code is to my liking I will report back, hopefully with pictures. But this came up in between other projects so it might take a while.