Me No Dev
Me No Dev
Here are my results: ```cpp void setup() { Serial.begin(115200); delay(2000); String receivedData = "#P0=500.000"; Serial.println(receivedData); receivedData.remove(0,1); Serial.println("removed receivedData first item: #"); Serial.println(receivedData); } void loop() { // put your main...
this must be some local or temporary problem. Repository is working fine
The ESP32's Slave works differently than all other chips we have. ESP32 needs data to be PRELOADED before the request is received. Fore reference are [these lines](https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire/examples/WireSlave/WireSlave.ino#L28-L32) in the slave...
I tried the code. the only change I made was to write two bytes, because that is how many you read in your master sketch and the result is as...
where is it appearing? the slave address is `0x30` not `0x03`
Please make sure that you write as many bytes as will be read. That is important, else you are reading random bytes in the fifo
You must read as many bytes as you wrote. That is all. No other tricks are necessary
I have slightly revised your example above. Mostly prints and it's functionally the same. I use the same pins and all.
One suggestion for your use case. Use `Wire.slaveWrite(data, len)` instead of `Wire.write(data, len)`. Then you can load the values directly in the `onReceive` callback. That will make communication faster too....
@JorgeMALopes any news?