mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
909 B
909 B
4. Pushing
Index · Previous: Client · Next: Reading
As node-sensor (client.toml).
E:\BakaShrot>bakashrot push sensors "{\"celsius\":21.5}"
Pushed as message #1
E:\BakaShrot>bakashrot push sensors @reading.json -a photo.jpg
Pushed as message #2, with an attachment of 245 bytes
- Always pushed as the certificate's node (
node-sensor). @filereads the message from a file,-from stdin.-a: one attachment per message.
Refused
E:\BakaShrot>bakashrot push other "{}"
Refused by the server (NotAllowed): node-sensor may not push to 'other'
E:\BakaShrot>bakashrot messages sensors node-sensor
Refused by the server (NotAllowed): node-sensor may not read 'sensors'
otherisn't in thesensorrole'spush_topics.- The
sensorrole has noread_topics: reading is the viewer's (Reading).