I have 4 photoresistor values and 1 angle value from a GY-511 module that I'm getting via I2C connection.
I'm trying to send them as an array using the esp_now_send protocol.
esp_now_send protocol limited to 250 bytes???
I first calibrated the values using this example: https://www.arduino.cc/en/tutorial/calibration
In my case I'm tracking the sun, so I took the void setup () portion of code and put it into my void loop () code area since the light will be constantly changing through out the day.
I didn't want the initial values it establishes as base zero values in the morning and use those same values as the calibrated values for the rest of the time periods of the day. I hope I understood the calibration method properly. If anyone disagrees or has feedback regarding this please let me know.
Right now I'm getting this error:
exit status 1
invalid conversion from 'uint16_t {aka short unsigned int}' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive]
at this portion of my code:
//For each sensor
for (int i = 0; i < 4; i++) {
esp_now_send(analogRead(SensorArray[i]));
Serial.println(SensorArray[i]);
}
I'm not sure if it has to do with code I found online for the GY-511 module.
Up at the top of the code I declared these variables:
const int MPU_addr = 0x19;
int16_t AcX, AcY, AcZ, Tmp, GyX, GyY, GyZ;
Although I don't have uint16_t variable declared throughout my code.
I tried finding it.
Also is my approach correct regarding the array inside the void sendData() block of code?
Thanks!