APUE course source code
guowenxue
2025-11-20 c8234c0b72e173ea59bffa72457623970f698c4b
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
 
hostname="weike-iot.com"
port=8013
uid="lingyun"
pwd="lingyun"
 
options="-h $hostname -p $port -u $uid -P $pwd"
 
topic="\$Sys/Studio/Uplink"
 
set -x
mosquitto_sub $options -t $topic