1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00
Files

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).
  • @file reads 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'
  • other isn't in the sensor role's push_topics.
  • The sensor role has no read_topics: reading is the viewer's (Reading).