From: Mart Lubbers Date: Wed, 17 May 2017 18:32:31 +0000 (+0200) Subject: update X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=a81623aa9629a3c5c8f8bf920e494a596b30c4b7;p=mTask.git update --- diff --git a/Shares/mTaskShare.dcl b/Shares/mTaskShare.dcl index 8508cb3..de2cbc4 100644 --- a/Shares/mTaskShare.dcl +++ b/Shares/mTaskShare.dcl @@ -25,4 +25,5 @@ cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] cleanSharesDevice :: String -> Task [MTaskShare] updateShare :: Int BCValue -> Task [MTaskShare] + //updateShare :: Int BCValue -> Task () diff --git a/client/arduino/interface.cpp b/client/arduino/interface.cpp index c48f7c3..fb6f4c6 100644 --- a/client/arduino/interface.cpp +++ b/client/arduino/interface.cpp @@ -11,6 +11,7 @@ extern "C" void write_byte(uint8_t); extern "C" uint8_t read_byte(void); extern "C" bool input_available(void); extern "C" void msdelay(unsigned long); +extern "C" void reset(void); unsigned long getmillis(void) { @@ -60,3 +61,9 @@ void pdie(char *s) { die(s); } + +void reset(void) +{ + Serial.end(); + real_setup(); +} diff --git a/client/nodemcu/client.h b/client/nodemcu/client.h new file mode 120000 index 0000000..10b598d --- /dev/null +++ b/client/nodemcu/client.h @@ -0,0 +1 @@ +../client.h \ No newline at end of file diff --git a/client/nodemcu/interface.cpp b/client/nodemcu/interface.cpp index 2df5c1c..9812fca 100644 --- a/client/nodemcu/interface.cpp +++ b/client/nodemcu/interface.cpp @@ -16,6 +16,7 @@ extern "C" void write_byte(uint8_t); extern "C" uint8_t read_byte(void); extern "C" bool input_available(void); extern "C" void msdelay(unsigned long); +extern "C" void reset(void); WiFiServer server(PORT); WiFiClient client; @@ -93,3 +94,9 @@ void pdie(char *s) { die(s); } + +void reset(void) +{ + Serial.end(); + real_setup(); +}