Hi All, I am working on Smart Light App and using following Fiware GEs - Orion Context Broker - Iotagent-json - Mosquito I am able to send events/data on "/<service>/<deviceId>/attrs" topic which updates the context broker and one can subscribe to the same. Now I have below queries. 1. Above case is for Events, means Device/Sensor sending data and it updates the same in Context Broker. I need to do other way also, means sending commands from some applications (say web application) towards Device and status of Device gets changed. 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. 2. Now, my data coming from Device is Base64 encrypted (example given below). If I send the same directly to "/attrs" topic it is not updating attributes values due to encryption. I may add extra layer for decryption and then publish it on "/attrs" topic which would update ehe values in context broker. Is it the right approach? Does Fiware supports Encryption (Mainly Base64)? Example: Plain Text: Payload: {"command": "ON_OFF","switchInternalId":"S01", "action":"ON",,"requestId":"123"} Encrypted Message: On/Off Message: { "messageId": "onoffmsgId", "deviceId": "device-id", "commandId": " ON_OFF ", "encodingType": "Base64", "message":"ew0KCSJjb21tYW5kIjogIkVPTyIsDQoJInN3aXRjaEludGVybmFsSWQiOiAiUzAwMDAwMyIsDQoJIMTCIsDQoJInJlcXVlc3RJZCI6ICJFT09fdGVtcFJlcUlkIg0KfQ=" } Appreciate your help. Thanks & Regards, Krishan Babbar ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html <http://www.techmahindra.com/Disclaimer.html> externally http://tim.techmahindra.com/tim/disclaimer.html <http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra. ============================================================================================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20180322/40f571b9/attachment-0001.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy