You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

On this page we would like to show some connection examples using Pre-shared-key (PSK) and error descriptions.

Set-up: 

MQTT message example:

  • Prio 1 message
  • To handset with SIP ID 1013
  • With "Fire" icon and some text
MQTT example
mosquitto_pub -u as1 --psk-identity as1 --psk 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{"msgId":"1","payload":{"amsgId":"23642","sip_id":"1013","msg":{"server_msg_status":"new","prio":"1","title":{"text":"Message prio 1","color":"04"},"status_icon":"0D","status_text":"accept","ttl":"600","alert_info":"msg_melody_low","overrule_silencing":"no","vibration":"no","ringtone_volume":"50","deletable":"yes","local_ignore":"yes","presentation_time":"30","body_starter":"Body starter","msg_icon":{"value":"28"},"body":[{"msg_icon":{"value":"4E","color":"04"}},{"paragraph":{"text":"Prio 1 message: some longer test to check how long the message can be","blink":"no","underline":"yes","bold":"yes","align":"left","color":"00"}},{"paragraph":{"text":"This text is only shown in detailed view","blink":"no","underline":"no","bold":"no","align":"left"}}],"reply_options":[{"option_id":"1","reply":{"text":"Msg1SK1"}},{"option_id":"2","reply":{"text":"Msg1SK2"}},{"option_id":"3","make_call":{"text":"Call","to":"1021"}}]}}}' -p 8884 -h 192.168.178.190

Syslog output

MQTT New connection from 192.168.178.61 on port 8884.
Syslog New client connected from 192.168.178.61 as mosq-PQBgyaFiibZoW66I2k (c1, k60, u'as1').
...
...


  • No labels