diff --git a/HISTORY b/HISTORY index d140426..7331b6b 100644 --- a/HISTORY +++ b/HISTORY @@ -45,3 +45,9 @@ Version history 0.10: 11/04/2016 - Added support for SainSmart 16 Channel controller USB HID Programmable Control Relay Module - Cleanup patches + +0.10.1: 30/08/2016 (Bugfix release) +- Fixed compatibility issue with PiRelay app +- Added "-D" option for daemon mode ("-D" sends crelay to backgound, "-d" leaves crelay in foregraound) +- Modified file stream handling as temporary workaround for web server connection issue on some systems (OpenWRT) +- Added LDFLAGS parameter to linger command in Makefile (needed by OpenWRT) diff --git a/README.md b/README.md index 5020417..d7eece5 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,10 @@ The following picture shows a high level view on the modular software architectu
### HTTP API -An HTTP API is provided to access the server from external clients. This API is compatible with the [PiRelay Android app](https://play.google.com/store/apps/details?id=com.jasonfindlay.pirelay). Therefore the app can be used on your Android phone to control *crelay* remotely. -I am also considering to add a more universally usable Json format based API in the future. +An HTTP API is provided to access the server from external clients. This API is compatible with the PiRelay Android app. Therefore the app can be used on your Android phone to control *crelay* remotely. + +Note: *the author of this app seems to have removed the free version of the app from the Google Play Store (leaving only the PRO version). +For this reason and the fact that PiRelay is not open source I am considering to develop a dedicated crelay Android app. This will use a more universal Json format based API. Any volunteers who want to contribute to this app are very welcome.* - API url:
ip_address[:port]/gpio
diff --git a/src/Makefile b/src/Makefile index c93d938..87c9f72 100644 --- a/src/Makefile +++ b/src/Makefile @@ -64,7 +64,7 @@ all: $(BIN) $(BIN): $(OBJ) @echo "[Link $(BIN)] with libs $(LIBS)" - @$(CC) -o $(BIN) $(OBJ) $(LIBS) + @$(CC) -o $(BIN) $(OBJ) $(LDFLAGS) $(LIBS) .c.o: @echo "[Compile $<]" diff --git a/src/crelay.c b/src/crelay.c index d2ea67c..4d6f9a7 100644 --- a/src/crelay.c +++ b/src/crelay.c @@ -4,7 +4,7 @@ * * Description: * This software is used to controls different type of relays cards. - * There are 3 ways to control the relais: + * There are 3 ways to control the relays: * 1. via command line * 2. via web interface using a browser * 3. via HTTP API using a client application @@ -17,7 +17,7 @@ * sudo make install * * Last modified: - * 11/08/2016 + * 30/08/2016 * * Copyright 2016, Ondrej Wisniewski * @@ -728,7 +728,6 @@ int main(int argc, char *argv[]) /* Wait for request from web client */ s = accept(sock, NULL, NULL); - printf("s=%d\n", s); if (s < 0) break; /* Process request */