-
Notifications
You must be signed in to change notification settings - Fork 23
/
mos.yml
57 lines (56 loc) · 2.83 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
author: mongoose-os
description: MQTT protocol support
type: lib
version: 1.0
manifest_version: 2017-09-29
sources:
- src
includes:
- include
config_schema:
# NB: mqtt and mqtt1 must be identical.
- ["mqtt", "o", {title: "MQTT settings"}]
- ["mqtt.enable", "b", false, {title: "Enable MQTT"}]
- ["mqtt.server", "s", "iot.eclipse.org:1883", {title: "MQTT server"}]
- ["mqtt.client_id", "s", "", {title: "ClientID t send to the broker. Defaults to device.id."}]
- ["mqtt.user", "s", "", {title: "User name"}]
- ["mqtt.pass", "s", "", {title: "Password"}]
- ["mqtt.reconnect_timeout_min", "d", 2.0, {title: "Starting reconnect timeout"}]
- ["mqtt.reconnect_timeout_max", "d", 60.0, {title: "Maximum reconnect timeout"}]
- ["mqtt.ssl_cert", "s", "", {title: "Client certificate to present to the server"}]
- ["mqtt.ssl_key", "s", "", {title: "Private key corresponding to the certificate"}]
- ["mqtt.ssl_ca_cert", "s", "", {title: "Verify server certificate using this CA bundle"}]
- ["mqtt.ssl_cipher_suites", "s", "", {title: "Cipher suites to offer to the server"}]
- ["mqtt.ssl_psk_identity", "s", "", {title: "PSK identity (must specify PSK cipher suites)"}]
- ["mqtt.ssl_psk_key", "s", "", {title: "PSK key"}]
- ["mqtt.clean_session", "b", true, {title: "Clean Session"}]
- ["mqtt.keep_alive", "i", 60, {title: "Keep alive interval"}]
- ["mqtt.will_topic", "s", "", {title: "Will topic"}]
- ["mqtt.will_message", "s", "", {title: "Will message"}]
- ["mqtt.will_retain", "b", false, {title: "Will retain flag"}]
- ["mqtt.max_qos", "i", 2, {title: "Limit QoS of outgoing messages to at most this"}]
- ["mqtt.recv_mbuf_limit", "i", 3072, {title: "Limit recv buffer size"}]
- ["mqtt.require_time", "b", false, {title: "Only connect if (when) wall time is set"}]
- ["mqtt.cloud_events", "b", true, {title: "Trigger cloud events when connected / disconnected"}]
- ["mqtt.max_queue_length", "i", 5, {title: "Maximum queue length for buffering QoS 1+ messages. 0 to disable queue."}]
- ["mqtt.ws_enable", "b", false, {title: "Enable WebSocket encapsulation"}]
- ["mqtt.ws_path", "s", "/mqtt", {title: "Path to use for WebSocket handshake"}]
- ["mqtt.debug_use_log_level", "b", false, {title: "Use the cs_log_level enum instead of stdout/stderr flag"}]
# Alternative MQTT configuration. If enabled, client will alternate between mqtt and mqtt1
# when unable to connect.
- ["mqtt1", "mqtt", {title: "Backup MQTT settings"}]
- ["mqtt1.enable", false]
- ["mqtt1.server", ""]
- ["debug.stdout_topic", "s", "", {title: "MQTT topic to publish STDOUT to"}]
- ["debug.stderr_topic", "s", "", {title: "MQTT topic to publish STDERR to"}]
cdefs:
MG_ENABLE_MQTT: 1
tags:
- mqtt
- c
- js
- net
- docs:net:MQTT
# Temporary, while root manifest change propagates (2018/03/29).
libs:
- location: https://github.com/mongoose-os-libs/core