Sat, 16 May 2015 17:39:30 +0200
Made the client-server protocol more robust. When a change to a unit is made using the web interface, the main process is stopped during the update. Splitted the PID in two PID's, one for heating and one for cooling. Adjusted the web edit scrreen for this, but there are still rough edges. Replaced the PID code, maybe this one works better for our purpose. The simulator air temperature changes on the simulator heater and cooler, but it is not realistic at all. This is a development version, do not use in production. The version is 0.3.0
#ifndef _RC_SWITCH_H #define _RC_SWITCH_H #ifdef HAVE_WIRINGPI_H /* rc-switch.c */ int toggleSwitch(char *); int toggleTypeA(char *, char *, int); int toggleTypeB(int, int, int); int toggleTypeC(char, int, int, int); int toggleTypeE(char, int, int); void enableReceiveIRQ(int interrupt); void enableReceive(void); void disableReceive(void); int available(void); void resetAvailable(void); unsigned long getReceivedValue(void); unsigned int getReceivedBitlength(void); unsigned int getReceivedDelay(void); unsigned int getReceivedProtocol(void); unsigned int *getReceivedRawdata(void); void enableTransmit(int); void disableTransmit(void); char *dec2binWzerofill(unsigned long, unsigned int); #endif #endif