![](/media/cache/profiles/1c67df9e0a5cfefa030b853983324004.50x50_q85.png)
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...
Diff: main.cpp
- 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 + } +}