Commit Graph
1276 Commits
Author SHA1 Message Date
john30 dc12476bc1 fix for previous commit 2018-04-15 08:38:24 +02:00
john30 4013ecd14c close device on error 2018-04-15 08:37:34 +02:00
john30 caa0da2a5e log when device became invalid, reduce re-connect time from 10 to 5 seconds 2018-04-15 08:29:38 +02:00
john30 10e0c96ac2 fix for potential duplicate free 2018-04-08 19:07:49 +02:00
john30 00dce10324 added "--mqttignoreinvalid" (fixes #176) 2018-04-08 18:59:28 +02:00
john30 80635ef321 added "--mqttignoreinvalid" (fixes #176) 2018-04-08 18:57:29 +02:00
john30 257fbea82b always include help for "read -def", better error message when using "-def" if not enabled 2018-04-08 14:41:55 +02:00
john30 875c6488cb fixed call 2018-04-08 14:07:09 +02:00
john30 186eacb528 fix for non-C++11 compiler, better var names 2018-04-08 14:05:33 +02:00
john30 1955e4862f added decode/encode commands, use [DD]* instead of Dx in help 2018-04-08 13:48:54 +02:00
john30 bee1fc5b8a aligned tests with latest FileReader changes 2018-04-08 13:48:52 +02:00
john30 000d68f3c2 added "-def" option to read and write commands for using inline message definition (fixes #154), added support for replacing messages during load to FileReader and subclasses, added MessageMap::remove(), prepared decode/encode commands 2018-04-08 13:48:49 +02:00
john30 8ad3ad9c5b removed unnecessary check 2018-04-08 09:08:46 +02:00
john30 ca0f59e146 documentation 2018-04-08 09:08:26 +02:00
john30 f0763ce293 allow more than one fd to be set by ppoll for checking error 2018-04-08 09:07:43 +02:00
john30 343a67f06a added timeout and exit code (fixes #122) 2018-04-04 17:56:29 +02:00
john30 8badc83b05 watch sockets for error as well in connect 2018-04-04 17:51:13 +02:00
john30 230abbb9fb added connect timeout, fixed non-closed sockets on connect error 2018-04-04 17:25:39 +02:00
john30 c7c5feaea6 added maxage argument to HTTP/JSON port (fixes #116) 2018-04-04 16:01:54 +02:00
john30 2a348c2087 aligned tests to latest changes 2018-04-04 15:49:48 +02:00
john30 bd5f800426 code style, missing initializers and imports 2018-04-04 15:48:26 +02:00
john30 42d096001f better comments and help for changed config service URL 2018-04-04 10:19:54 +02:00
john30 a36174c02f added support for retrieving configuration files from config service URL and changed that to be the default, always store loaded files by relative path, changed FileReader to allow reading from stream as well 2018-04-04 10:08:46 +02:00
john30 a77b740720 extended request and get to optionally retrieve last-modified header, fix for potentially wrong content-length extraction 2018-04-04 09:57:38 +02:00
john30 f2f70d400a accept urls without trailing '/' 2018-02-04 16:18:10 +01:00
john30 cf05b63aa3 also serve .csv, fix for invalid HTTP requests 2018-02-04 16:17:18 +01:00
john30 66e4d76a9b fix for weird IP address logging 2018-02-04 16:15:34 +01:00
john30 c94da06975 made http client more flexible and support content-length response header 2018-02-03 23:27:02 +01:00
john30 daf771e6d3 fix for /get topic not being interpreted when topic is on field level 2018-02-03 15:27:12 +01:00
J0EK3RandGitHub 79fb47240e Update tcpsocket.h
added #include <sys/time.h> for Type timeval
2018-02-02 16:20:04 +01:00
john30 4cdcf2d35e changed update logging from "updated" to "received" or "sent" and also log message when sent by ebusd, avoid unnecessary addSeenAddress() calls, removed logging of decoded poll result (already done as regular update output now) 2018-01-28 17:48:35 +01:00
john30 fa78ae73f0 updated copyright year 2018-01-28 15:17:33 +01:00
john30 d6668713d1 extracted http client 2018-01-28 15:12:59 +01:00
john30 472c25fb0c avoid too much load when not connected, give up connection on wrong parameters, log errno if initial connection fails and continue trying to connect every 15 seconds (fixes #130) 2018-01-28 11:41:16 +01:00
J0EK3R 85f55fc584 try reconnect even on initial no connection established 2018-01-27 16:21:44 +01:00
J0EK3R 9b0bee152f =reconnect a previous established MQTT-connection 2018-01-27 14:52:03 +01:00
john30 b0e20b7c7c code style 2017-12-26 14:27:44 +01:00
john30 d610f4ca43 check null in signal handler 2017-12-26 14:15:35 +01:00
john30 c680e87bde corrected using fieldIndex in Message::decodeLastData(bool, ...), corrected finding field in DataFieldSet::read() with index and without name, added optional partType and fieldName to DataField::getCount() 2017-12-26 13:56:26 +01:00
john30 1da2611964 check scanconfig argument parse result 2017-12-17 16:08:46 +01:00
john30 ab5c350d24 corrected wrong initial scan loag message 2017-12-17 10:04:52 +01:00
john30 6bba2d6a02 mark scan as finished only if loading failed or the request timed out 2017-12-17 10:04:01 +01:00
Daniel Strigl dc20cfeb1b ! Fixed setsockopt call for timeout 2017-12-08 21:47:04 +01:00
john30 d7400a4155 fix for address check for -s/-d in read and write command (was never interpreted as destination address), allow master addresses for -d in write command 2017-12-04 09:08:56 +01:00
john30 4c1aefbd6d corrected unit for arbitration delay measurement 2017-11-19 18:26:56 +01:00
john30 551d7e5417 added arbitration delay measurement 2017-11-19 14:14:18 +01:00
john30 2210140e4f Merge remote-tracking branch 'origin/master' 2017-11-19 12:19:59 +01:00
john30 d51b08f082 fix for dumping bytes and raw data not initially enabled when requested (fixes #126), compiler warnings 2017-11-19 12:19:04 +01:00
john30 a87ea4a6d8 file mode 2017-11-19 11:59:33 +01:00
john30 b18d7f38bb wait some time for initial garbage in tcp mode and fixed dumping garbage, use FIONREAD instead of MSG_PEEK for cygwin (fixes #132) 2017-11-19 11:58:31 +01:00