Skip to content

Commit

Permalink
Added cast to example to meet the ESP32 Serial port definition
Browse files Browse the repository at this point in the history
  • Loading branch information
argandas committed Feb 19, 2021
1 parent b3efd0c commit aa3daaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/SerialCommandParser/SerialCommandParser.ino
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void messageHandler(BSONObject * bson_obj) {
bob.append("status_code", (int32_t)0);
BSONObject bo = bob.obj(); // Generate BSON Object
// Send BSON message
Serial.write(bo.rawData(), bo.len());
Serial.write((uint8_t *)bo.rawData(), bo.len());
}

}
Expand Down

0 comments on commit aa3daaf

Please sign in to comment.