Chip-cn-dat/SIMCOM-dat/A7670-DAT/A7670-at-log.md
... ...
@@ -1,7 +1,7 @@
1 1
2 2
# A7670-at-log.md
3 3
4
-- use pre-build SIMCOM AT here [[simcom-at-sscom-dat]]
4
+- use pre-build SIMCOM AT here [[simcom-at-basic-dat]]
5 5
6 6
- [[A7670-dat]]
7 7
Tech-dat/Network-dat/2025-06-19-14-15-30.png
... ...
Binary files /dev/null and b/Tech-dat/Network-dat/2025-06-19-14-15-30.png differ
Tech-dat/Network-dat/2025-06-19-14-31-06.png
... ...
Binary files /dev/null and b/Tech-dat/Network-dat/2025-06-19-14-31-06.png differ
Tech-dat/Network-dat/2025-06-19-14-31-48.png
... ...
Binary files /dev/null and b/Tech-dat/Network-dat/2025-06-19-14-31-48.png differ
Tech-dat/Network-dat/2025-06-19-14-32-05.png
... ...
Binary files /dev/null and b/Tech-dat/Network-dat/2025-06-19-14-32-05.png differ
Tech-dat/Network-dat/2025-06-19-14-32-24.png
... ...
Binary files /dev/null and b/Tech-dat/Network-dat/2025-06-19-14-32-24.png differ
Tech-dat/Network-dat/mqtt-dat.md
... ...
@@ -34,33 +34,105 @@ Log file
34 34
cat /var/log/mosquitto/mosquitto.log
35 35
36 36
## Conf Setup list
37
-allow_anonymous false // not allow anonymous
38
-password_file /etc/mosquitto/passwd // set password
39 37
40
-listener 1883 // set port 1883 public, or listener 1883 localhost for localhost only
38
+Secure the Mosquitto Server
41 39
42
-listener 1884 // set 1884 for wss
43
-protocol websockets
40
+Create a default.conf under the directory.
44 41
42
+ nano /etc/mosquitto/conf.d/default.conf
45 43
44
+ allow_anonymous false // not allow anonymous
45
+ password_file /etc/mosquitto/passwd // set password
46
+
47
+optionally
48
+
49
+ listener 1883 // set port 1883 public, or listener 1883 localhost for localhost only
50
+ listener 1884 // set 1884 for wss protocol websockets
51
+
52
+set users
53
+
54
+ nano /etc/mosquitto/passwd
55
+
56
+ electrodragon:electrodragon
57
+
58
+Restart the mosquitto service to load the new changes.
59
+
60
+ sudo systemctl restart mosquitto
46 61
47 62
48 63
## MQTT client
49 64
50
-sudo apt install -y mosquitto-clients
65
+ sudo apt install -y mosquitto-clients
51 66
52 67
sub:
53
-mosquitto_sub -t "test"
68
+
69
+ mosquitto_sub -t "test"
70
+ mosquitto_sub -u electrodragon -P electrodragon -t "test"
54 71
55 72
pub:
56
-mosquitto_pub -m "ON" -t "test"
73
+
74
+ mosquitto_pub -m "ON" -t "test"
57 75
58 76
A number of my IoT students make use of (the FREE plan with) BeeBotte for their remote MQTT broker.
59 77
60 78
https://beebotte.com/
79
+
61 80
It's very easy to set up and works really well with Nod-RED.
62 81
82
+## execute
83
+
84
+From this point forward, you should execute any pub/sub command using the syntax below. Remember to replace electrodragon and EXAMPLE_PASSWORD with the credentials that you defined in the password file.
85
+
86
+ mosquitto_sub -u electrodragon -P electrodragon -t "home/lights/sitting_room"
87
+ mosquitto_pub -u electrodragon -P electrodragon -t "home/lights/sitting_room" -m "ON"
88
+
89
+
90
+![](2025-06-19-14-15-30.png)
63 91
64 92
65 93
## web test
66
-- https://www.emqx.io/mqtt/mqtt-websocket-toolkit
... ...
\ No newline at end of file
0
+
1
+- https://testclient-cloud.mqtt.cool/
2
+
3
+may not working SSL not enabled
4
+
5
+- https://www.hivemq.com/demos/websocket-client/
6
+- https://www.emqx.io/mqtt/mqtt-websocket-toolkit
7
+
8
+## free electrodragon MQTT broker
9
+
10
+- 206.237.31.27
11
+- user == electrodragon
12
+- password == electrodragon
13
+- SSL not enabled
14
+
15
+## android software
16
+
17
+- IOT MQTT Panel
18
+
19
+setup guide for out free MQTT broker
20
+
21
+
22
+
23
+1. connection part
24
+
25
+![](2025-06-19-14-32-05.png)
26
+
27
+notice in addtional options add user name and password to be electrodragon and electrodragon
28
+
29
+2. dashboard part
30
+
31
+![](2025-06-19-14-32-24.png)
32
+
33
+3. panel part
34
+
35
+![](2025-06-19-14-31-48.png)
36
+
37
+4. output
38
+
39
+![](2025-06-19-14-31-06.png)
40
+
41
+## ref
42
+
43
+- https://mosquitto.org/man/mosquitto-conf-5.html
44
+
Tech-dat/tech-dat.md
... ...
@@ -15,7 +15,7 @@
15 15
16 16
- [[robot-dat]]
17 17
18
-- [[network-dat]] - [[fiber-optic-dat]] - [[location-dat]]
18
+
19 19
20 20
- [[M2M-dat]]
21 21
... ...
@@ -26,6 +26,12 @@
26 26
27 27
## Category
28 28
29
+## network
30
+
31
+- [[network-dat]] - [[fiber-optic-dat]] - [[location-dat]]
32
+
33
+- [[network-system-dat]]
34
+
29 35
### MCU / CTRL / Processing
30 36
31 37
- [[mcu-dat]] - [[development-board-dat]]