YamnSSalim / Smart-City-IoT

0 stars 0 forks source link

Project 4: Issue: Receiving joystick data on Zumo32u4 serial monitor. #3

Open YamnSSalim opened 3 months ago

YamnSSalim commented 3 months ago
YamnSSalim commented 3 months ago

Fixed issue: The problem was the statement "Wire.write((const uint8_t*)messageTemp.c_str(), messageTemp.length()); ".

The line didnt have the correct type, the 'Wire.write()' function expects a pointer to 'uint8_t' but you was passing a 'const char*'.