RN41/42 control lib. RN41/42 is bluetooth module with class 1 or 2.

Dependencies:   StrLib myTimer RingBuffer

Dependents:   Theremin

Revision:
5:63925964cbd5
Parent:
4:8b74db22e4c6
--- a/RN41.cpp	Mon Nov 16 04:11:50 2015 +0000
+++ b/RN41.cpp	Fri Nov 20 07:15:40 2015 +0000
@@ -158,6 +158,17 @@
     return NG;
 }
 
+bool RN41::reboot()
+{
+    if(!enterCMD())
+        return ;       // CMD入れず
+    sendCMD("R,1");     
+
+//    bool2 find= chkReply("Reboot!\r", 100);
+
+    return chkReply("Reboot!\r", 100).b1;
+}
+
 
 void RN41::sendCMD(string str, bool addCR)
 {