Driver for the JY-MCU v1.06 HC-06 Bluetooth module.

Dependents:   DISCO-F746NG_rtos_test MbedTableControl

Revision:
19:41da4bfc4d4d
Parent:
18:85c0f6580cd8
Child:
20:13283edd1aba
--- a/HC06Bluetooth.h	Fri Aug 05 12:04:08 2016 -0400
+++ b/HC06Bluetooth.h	Fri Aug 05 17:13:14 2016 -0400
@@ -48,11 +48,17 @@
      * @param buffer A null-terminated buffer containing the data you want to send.
      */
     void print(const char *buffer);
+    void print(std::string s) {
+       print(s.c_str());
+    }
     /**
      * @brief Print information in buffer to the output followed by a newline
      * @param buffer A null-terminated buffer containing the data you want to send.
      */
     void println(const char *buffer);
+    void println(std::string s) {
+       println(s.c_str());
+    }
     /**
      * @brief Print a character to output.
      * @param char The character you want to print to output.