aboutsummaryrefslogtreecommitdiff
path: root/libraries/Bridge/Bridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Bridge/Bridge.cpp')
-rw-r--r--libraries/Bridge/Bridge.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/Bridge/Bridge.cpp b/libraries/Bridge/Bridge.cpp
index 5802156..2485852 100644
--- a/libraries/Bridge/Bridge.cpp
+++ b/libraries/Bridge/Bridge.cpp
@@ -68,6 +68,10 @@ void BridgeClass::writeMessage(const uint8_t *buff, unsigned int size) {
transfer(cmd, 1, buff, size, NULL, 0);
}
+void BridgeClass::writeMessage(const String& str) {
+ writeMessage((uint8_t*) str.c_str(), str.length());
+}
+
unsigned int BridgeClass::messageAvailable() {
uint8_t tmp[] = {'n'};
uint8_t res[2];