Commit Graph

76 Commits (ace4c70fe466ae65b29d2ec89ec05d2f5f9618e4)

Author SHA1 Message Date
Michael Zanetti a21dde0289 Generate a version.h file instead of passing it via DEFINES 2020-01-15 12:39:35 +01:00
Michael Zanetti 5a36c2347f fix logging system to cope with the qml output redirection 2019-12-01 00:08:57 +01:00
Michael Zanetti 64a494e44a Fix tests that didn't wait long enough for log entries to be written 2019-11-28 20:47:55 +01:00
Michael Zanetti c7dd26d525 cleanup, fix last tests 2019-11-16 00:44:08 +01:00
Michael Zanetti 0e7edd5abd cleanup 2019-11-04 10:52:06 +01:00
Michael Zanetti feee5ef23a Fix tests 2019-11-01 20:55:45 +01:00
Michael Zanetti baaa719b6a Restructuring json done 2019-11-01 20:55:45 +01:00
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