Skip to content

Commit 0cd3999

Browse files
committed
Minor change in Makefile, updated HISTORY and README docs
1 parent 956689e commit 0cd3999

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

HISTORY

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ Version history
4545
0.10: 11/04/2016
4646
- Added support for SainSmart 16 Channel controller USB HID Programmable Control Relay Module
4747
- Cleanup patches
48+
49+
0.10.1: 30/08/2016 (Bugfix release)
50+
- Fixed compatibility issue with PiRelay app
51+
- Added "-D" option for daemon mode ("-D" sends crelay to backgound, "-d" leaves crelay in foregraound)
52+
- Modified file stream handling as temporary workaround for web server connection issue on some systems (OpenWRT)
53+
- Added LDFLAGS parameter to linger command in Makefile (needed by OpenWRT)

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ The following picture shows a high level view on the modular software architectu
102102
<br>
103103

104104
### HTTP API
105-
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.
106-
I am also considering to add a more universally usable Json format based API in the future.
105+
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.
106+
107+
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).
108+
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.*
107109

108110
- API url:
109111
<pre><i>ip_address[:port]</i>/gpio</pre>

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ all: $(BIN)
6464

6565
$(BIN): $(OBJ)
6666
@echo "[Link $(BIN)] with libs $(LIBS)"
67-
@$(CC) -o $(BIN) $(OBJ) $(LIBS)
67+
@$(CC) -o $(BIN) $(OBJ) $(LDFLAGS) $(LIBS)
6868

6969
.c.o:
7070
@echo "[Compile $<]"

src/crelay.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Description:
66
* This software is used to controls different type of relays cards.
7-
* There are 3 ways to control the relais:
7+
* There are 3 ways to control the relays:
88
* 1. via command line
99
* 2. via web interface using a browser
1010
* 3. via HTTP API using a client application
@@ -17,7 +17,7 @@
1717
* sudo make install
1818
*
1919
* Last modified:
20-
* 11/08/2016
20+
* 30/08/2016
2121
*
2222
* Copyright 2016, Ondrej Wisniewski
2323
*
@@ -728,7 +728,6 @@ int main(int argc, char *argv[])
728728

729729
/* Wait for request from web client */
730730
s = accept(sock, NULL, NULL);
731-
printf("s=%d\n", s);
732731
if (s < 0) break;
733732

734733
/* Process request */

0 commit comments

Comments
 (0)