Skip to content

Commit 531aa55

Browse files
committed
添加FreeMQTT软件包
1 parent 1b83153 commit 531aa55

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

iot/FreeMQTT/Kconfig

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
# Kconfig file for package FreeMQTT
3+
menuconfig PKG_USING_FREEMQTT
4+
bool "FreeMQTT:From coreMQTT Client Library"
5+
default n
6+
7+
if PKG_USING_FREEMQTT
8+
9+
config PKG_FREEMQTT_PATH
10+
string
11+
default "/packages/iot/FreeMQTT"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_FREEMQTT_V100
19+
bool "v1.0.0"
20+
21+
config PKG_USING_FREEMQTT_LATEST_VERSION
22+
bool "latest"
23+
endchoice
24+
25+
config MQTT_CLIENT_ID
26+
string "mqtt client ID"
27+
default "freemqtt"
28+
29+
config MQTT_USERNAME
30+
string "mqtt name"
31+
default "free"
32+
33+
config MQTT_PASSWORD
34+
string "mqtt password"
35+
default "free"
36+
37+
config MQTT_BROKER_ADDRESS
38+
string "mqtt broker address"
39+
default "broker.emqx.io"
40+
41+
config MQTT_BROKER_PORT
42+
int "mqtt broker port"
43+
default 1883
44+
45+
config MQTT_TOPIC_SUB
46+
string "mqtt topic subscribe"
47+
default "free/topic/sub"
48+
49+
config MQTT_TOPIC_PUB
50+
string "mqtt topic publish"
51+
default "free/topic/pub"
52+
53+
config MQTT_KEEP_ALIVE
54+
int "mqtt keep alive"
55+
default 60
56+
57+
config MQTT_BUF_SIZE
58+
int "mqtt buffer size"
59+
default 4096
60+
61+
config PKG_FREEMQTT_VER
62+
string
63+
default "v1.0.0" if PKG_USING_FREEMQTT_V100
64+
default "latest" if PKG_USING_FREEMQTT_LATEST_VERSION
65+
66+
endif
67+

iot/FreeMQTT/package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "FreeMQTT",
3+
"description": "Ported from CoreMQTT",
4+
"description_zh": "CoreMQTT的RT-Thread移植版本",
5+
"enable": "PKG_USING_FREEMQTT",
6+
"keywords": [
7+
"FreeMQTT",
8+
"MQTT",
9+
"iot"
10+
],
11+
"category": "iot",
12+
"author": {
13+
"name": "Yaochenger",
14+
"email": "[email protected]",
15+
"github": "Yaochenger"
16+
},
17+
"license": "MIT",
18+
"repository": "https://github.com/Yaochenger/FreeMQTT",
19+
"icon": "unknown",
20+
"homepage": "https://github.com/Yaochenger/FreeMQTT#readme",
21+
"doc": "https://github.com/Yaochenger/FreeMQTT/blob/master/README.md",
22+
"site": [
23+
{
24+
"version": "v1.0.0",
25+
"URL": "https://github.com/Yaochenger/FreeMQTT/archive/refs/tags/1.1.0.zip",
26+
"filename": "FreeMQTT-1.0.0.zip"
27+
},
28+
{
29+
"version": "latest",
30+
"URL": "https://github.com/Yaochenger/FreeMQTT.git",
31+
"filename": "FreeMQTT.zip",
32+
"VER_SHA": "master"
33+
}
34+
]
35+
}

iot/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ source "$PKGS_DIR/packages/iot/lhc_modbus/Kconfig"
7070
source "$PKGS_DIR/packages/iot/qmodbus/Kconfig"
7171
source "$PKGS_DIR/packages/iot/p-net-rtt/Kconfig"
7272
source "$PKGS_DIR/packages/iot/OpENer/Kconfig"
73+
source "$PKGS_DIR/packages/iot/FreeMQTT/Kconfig"
7374
endmenu

0 commit comments

Comments
 (0)