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

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

On this page we would like to show some connection examples using username/password. Secure TLS communication will be established but only Nx70 device cert will be validated on customer side.

Set-up: 

  • Nx70 software ...
  • DECT handset R700H software release 11
  • ...


Configuration:

  1. The Application server must be enabled FAQ Nx70 - Application servers
  2. Messaging and Location enabled for the handset FAQ Nx70 - Messaging and Location how to enable/disable per handset
  3. Contact Gigaset to get the GigasetCA.pem that is needed on the server where mosquitto is executed FAQ Nx70 - GigasetCA.pem (Hidden)
  4. Add device to the known hosts FAQ Nx70 - Add device to the known hosts


MQTT example 2 using Windows PC

Windows: mosquitto version 2.0.14 

Nx70: Software 2.44.0

.\mosquitto_pub --cafile GigasetCA.pem -p 8886 -h 589ec62904f3 -u as1 -P 123456789012345678901234567890ab -t 'as1/msg/xxl/msgsrv/req/setMsg' -m '{\"msgId\":\"1\",\"payload\":{\"amsgId\":\"23643\",\"sip_id\":\"1021\",\"msg\":{\"server_msg_status\":\"new\",\"prio\":\"1\",\"title\":{\"text\":\"Message prio1\",\"color\":\"04\"},
\"status_icon\":\"0D\",\"status_text\":\"accept\",
\"ttl\":\"600\",
\"alert_info\":\"msg_melody_low\",
\"overrule_silencing\":\"no\",
\"vibration\":\"no\",
\"ringtone_volume\":\"50\",
\"presentation_time\":\"30\",
\"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\"}}]}}}' -i as1


where:

  • cafile GigasetCA.pem  root CA received from Gigaset
  • -p 8886  dedicated port for this communication option
  • -h Einstein2  host name corresponding to certificate Common Name, here Einstein2. For our customers this will be MAC ADDRESS of the Einstein device.
  • -u as1  application server previously added via webUI or provisioning
  • -P 123456789012345678901234567890cc  password previously added via webUI or provisioning
  • No labels