Michael Zanetti
2a91dad1f0
Don't generate events for state changes any more
...
Up until now, nymea would generate EventTypes for every StateType
as well as emit an Event (along with a StateChanged notification) for
every change. This results in a lot of duplicated network traffic
which is of not much use. The StateChanged notification contains
all the information in the Event too and nymea:app actually never
really used Events for state changes.
This commit removes the events from the ThingClass, making it a lot
smaller and stops emitting Events for state changes.
As this is breaking the behavior, the JSONRPC API major version
is bumped.
2022-02-08 10:38:41 +01:00
Michael Zanetti
6ab4d49ee1
Add multi user support
2022-02-08 10:36:14 +01:00
Michael Zanetti
717b4f33cc
Remove deprecated Devices, Action, Events, States namespaces from JSONRPC
2022-02-08 00:29:07 +01:00
Simon Stürz
9967b1007d
Add new namespace to the JSON RPC test
2021-06-06 00:43:37 +02:00
Michael Zanetti
60de0a3eed
Add support for storing application data on the core
2021-04-07 00:23:19 +02:00
Michael Zanetti
30a0469212
Update tests
2021-01-02 14:33:15 +01:00
Jenkins nymea
8a2d9c7e95
Merge PR #358 : Increase the maximum allowed message size in JSONRPC
2020-12-21 18:00:52 +01:00
Michael Zanetti
504b88eddd
Increase the maximum allowed message size in JSONRPC
...
Turns out 10KB can be exceeded with scripting
2020-11-25 14:08:24 +01:00
Simon Stürz
897b49b1f3
Add zigbee notifications to enable/disable JSONRPC tests
2020-11-16 16:07:54 +01:00
Michael Zanetti
8208473302
bump api
2020-03-05 16:16:57 +01:00
Michael Zanetti
2fbbaeda97
More work
2020-03-03 16:54:55 +01:00
Michael Zanetti
3e425fc55b
Rename devices to integrations/things
2020-03-02 13:40:26 +01:00
Michael Zanetti
fb94178920
Move authentication to Users namespace
2020-02-08 01:30:11 +01:00
Michael Zanetti
ec0aa802c5
Add more user management features
2020-02-07 00:33:00 +01:00
Michael Zanetti
8f5536ba1a
Update copyright
2020-01-23 20:07:26 +01:00
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