69 Commits

Author SHA1 Message Date
Michael Zanetti
5e3bc2acbd Drop JsonTypes class by distributing logic to json handlers
This is required in order to be able to be more flexible in registering
new types/methods.
2019-11-01 20:46:55 +01:00
Michael Zanetti
0d00342b3a fix tests 2019-10-30 17:35:43 +01:00
Michael Zanetti
9b1b6d86e6 Allow more granular notification subscriptions in API 2019-10-19 14:13:48 +02:00
Michael Zanetti
1f68389a85 Fix Browser icon definition in introspect 2019-10-08 15:51:10 +02:00
Michael Zanetti
51f5538772 Improve the PIC to detect duplicate UUIDs, give metter messages. Clean up mock plugin. 2019-07-15 22:55:11 +02:00
Michael Zanetti
5808da8f86 Make the initial handshake (JSONRPC.Hello) mandatory. 2019-04-10 12:43:03 +02:00
Michael Zanetti
50aa691087 Add test, fix some issues with loading internal and built-in plugin translations 2019-04-08 16:49:31 +02:00
Michael Zanetti
371c2f76c2 move servers into subdir, cleanup some includes 2019-04-08 13:55:15 +02:00
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