Commit Graph

61 Commits (2d98e9d6b9749499598de9133c584f82167c32f7)

Author SHA1 Message Date
Michael Zanetti 2d98e9d6b9 Rafactor Packet fragmentation
- Move Json packet fragmentation into the JsonRpcServer.
  This way we only have to do it once.

- fixes a bug in TcpServer and BluetoothServer
  where multiple clients would corrupt each others buffer

- fixes a bug in CloudTransport where it would leak client
  sockets after a remote connection disconnect
2019-04-08 13:55:15 +02:00
Michael Zanetti a6f4ddf188 Implement a tagging system 2019-04-08 13:55:15 +02:00
Michael Zanetti 44dd09d227 fix initialSetupRequired still being true, even if we already gave out tokens by pushbuttonAuth 2019-04-08 13:55:15 +02:00
Michael Zanetti 86c7a7bec6 update tests 2019-04-08 13:55:15 +02:00
Michael Zanetti b8a86b095d copyright headers guh -> nymea 2019-04-08 13:55:15 +02:00
Michael Zanetti 36d4f89b24 namespace guhserver -> namespace nymeaserver 2019-04-08 13:55:15 +02:00
Michael Zanetti 34d68ab38a guhtestbase -> nymeatestbase 2019-04-08 13:55:15 +02:00
Michael Zanetti 559a8be1f6 guhcore -> nymeacore 2019-04-08 13:55:15 +02:00
Michael Zanetti 39fc071ed6 defines GUH_* -> NYMEA_* 2019-04-08 13:55:15 +02:00
Michael Zanetti 99aa833ce8 add pushbutton auth 2019-04-02 01:02:45 +02:00
Michael Zanetti a31adc5a18 more stabilizing, new api changes added 2019-04-02 01:02:45 +02:00
Michael Zanetti 0c4289b92c add JSONRPC.Hello method
it might happen that the auto-sent welcome message is lost.
this is a way for the client to retrieve it again.
2019-04-02 01:02:45 +02:00
Michael Zanetti fc87cc5528 make username (email) case insensitive 2019-04-02 01:02:45 +02:00
Michael Zanetti 53cca56fd3 add methods to revoke existing tokens again 2019-04-02 01:02:45 +02:00
Michael Zanetti 08727a07ba Added API authentication 2019-04-02 01:02:45 +02:00
Michael Zanetti 165f61ee20 fix tests 2019-04-02 01:02:45 +02:00
Michael Zanetti ce123f9352 emit a notification when a plugin config is changed
fixes #418
2019-04-02 01:02:45 +02:00
Simon Stürz 9c8097919d update license header 2019-04-02 01:02:06 +02:00
Simon Stürz 859c5b0df8 add paramTypesId and close #302 2019-04-02 01:01:21 +02:00
Simon Stürz f5ee163c48 update copy right line 2019-04-01 20:48:17 +02:00
Simon Stürz 5c334c2521 bump api and fix some tests 2019-04-01 20:48:17 +02:00
Simon Stürz ed4794f43a fix logging tests 2019-04-01 20:48:17 +02:00
Simon Stürz edfadb6c88 change test order 2019-04-01 20:48:17 +02:00
Simon Stürz b841fd03d6 state changed notification 2019-04-01 20:48:17 +02:00
Simon Stürz adff8306b3 fix tests 2019-04-01 20:48:17 +02:00
Simon Stürz da7cfc27f8 fix backtace output
fix some tests to make sure they have enough time to verify
2019-04-01 20:48:17 +02:00
Simon Stürz c1a4d35387 fix test (TODO: find a better solution) 2019-04-01 20:48:17 +02:00
Simon Stürz d3cb1317af add backtrace method and SIGSEGV 2019-04-01 20:48:17 +02:00
Simon Stürz 1ef6c80e79 add editDevice method 2019-04-01 20:48:17 +02:00
Simon Stürz 449c224da0 fix tests and remove mockdevices name param 2019-04-01 20:48:17 +02:00
Simon Stürz e060d27a57 add checkNotifications 2019-04-01 20:48:17 +02:00
Simon Stürz 1c46a99412 add extra verify 2019-04-01 20:48:17 +02:00
Simon Stürz 6aeb18d674 fix JSONRPC tests 2019-04-01 20:48:17 +02:00
Simon Stürz 557baff39d add websocket server 2019-04-01 20:48:17 +02:00
Simon Stürz 85f6b441c9 fix tests 2019-04-01 20:48:17 +02:00
Simon Stürz e8053a1df5 fix tests 2019-04-01 20:48:17 +02:00
Simon Stürz 1688a6b24c added database updated notification
fixed notification tests
fixed datetime notification id
bump api version
2019-04-01 20:48:17 +02:00
Simon Stürz 91afe4f29e add guhserver namespace to server 2019-04-01 20:48:17 +02:00
Simon Stürz 523b954933 speed up tests 2019-04-01 20:48:17 +02:00
Simon Stürz b67bd44722 fixed enable disable notification tests 2019-04-01 20:48:17 +02:00
Simon Stürz 23f3a35a83 fix tests 2019-04-01 20:48:17 +02:00
Simon Stürz 9ee5eb20a9 first version of alarm 2019-04-01 20:48:17 +02:00
Simon Stürz 69ca5c4713 bump api version
add tests for rule active changed notification
2019-04-01 20:48:17 +02:00
Simon Stürz 265207914a added tests for DeviceParamsChanged (edit device) 2019-04-01 20:48:17 +02:00
Simon Stürz b7b286e599 added tests for RuleAdded and RuleRemoved notifications
fixed notification bug in rulehandler
2019-04-01 20:48:17 +02:00
Simon Stürz 26ac948f98 added notification tests for DeviceRemoved and DeviceAdded 2019-04-01 20:48:17 +02:00
Simon Stürz 2aa55e469e added copyright 2019-04-01 20:48:17 +02:00
Michael Zanetti 240c5e36d6 implement a logging framework 2019-04-01 20:48:17 +02:00
Michael Zanetti aad334c799 switch json api to better type system and enhance error reporting 2019-04-01 20:48:17 +02:00
Michael Zanetti 1aba1643f8 first attempt to clean up type system 2019-04-01 20:48:17 +02:00