-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Fiware/iotagent-json supports Commands and Encryption? #286
Comments
IOTAs and CB will deal with commands sent to devices in an opaque way. As long as you can ensure that the sender (i.e. the Orion client) and the receiver (the device) share the same keys to encode-decode, I think the approach should be feasible. The only think to pay attention is the set of forbidden chars (see https://fiware-orion.readthedocs.io/en/master/user/forbidden_characters/index.html). You should ensure that your encoded command don't have any of these ( |
Hi @babbarkrishan, Please have a look this guide that explain you how works with Could you write your fiware GE versions and mosquitto ? A good way is to start it using docker compose to run mongoDB and Fiware OCB. I’m using the following version:
Above an example: 1 Create a device:
2 Create a service:
3 Send Measures:
4 Requests for OCB
Note:
Please try it and let me know. Thanks, |
As a complement to the document @fermenreq cites, this one also describes the IOTA API (including command topics) and can be useful: http://fiware-iot-stack.readthedocs.io/en/master/device_api/index.html |
Hi All,
I am working on Smart Light App and using following Fiware GEs
I am able to send events/data on "///attrs" topic which updates the context broker and one can subscribe to the same.
Now I have below queries.
How do we work with Commands in Fiware? I tried /cmd and /cmdexe topics but it did not work. Kindly give steps and example if possible.
Example:
Plain Text: Payload: {"command": "ON_OFF","switchInternalId":"S01", "action":"ON",,"requestId":"123"}
Encrypted Message:
On/Off Message:
{
"message":"ew0KCSJjb21tYW5kIjogIkVPTyIsDQoJInN3aXRjaEludGVybmFsSWQiOiAiUzAwMDAwMyIsDQoJIMTCIsDQoJInJlcXVlc3RJZCI6ICJFT09fdGVtcFJlcUlkIg0KfQ="
}
Appreciate your help.
Thanks & Regards,
Krishan Babbar
The text was updated successfully, but these errors were encountered: