implementation of parts of the unilynx protocol, for communicating with danfos photovoltaic inverters. Still BETA ! needs byte stuff/unstuff fixed, and some CRC are left out for niw...

Dependencies:   mbed

Revision:
0:66a099b01e08
Child:
1:df4e9da66448
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Aug 27 18:30:37 2012 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "unilynx.h"
+
+
+DigitalOut myled(LED1);
+
+int main() {
+rs485init();
+    while(1) {
+        //test();
+        readParameter(RAW_MEAS_VALUES, ENERGY_PRODUCTION);
+
+        #if 1
+//        ping();
+        myled = 1;
+        wait(1);
+        myled = 0;
+//        getNodeInfo();
+        wait(1);
+        #endif
+    }
+}