Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
iot-mqtt-bl
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
iot-mqtt-bl
Commits
67503bd2
Commit
67503bd2
authored
Apr 27, 2023
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b39a6cdc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
check_mqtt.sh
haproxy/data/check_mqtt.sh
+1
-1
No files found.
haproxy/data/check_mqtt.sh
View file @
67503bd2
#!/bin/sh
#!/bin/sh
echo
$@
>>
/tmp/all_arguments.txt
echo
$@
>>
/tmp/all_arguments.txt
ip_adr
=
$(
echo
$@
|awk
'{print $3}'
)
ip_adr
=
$(
echo
$@
|awk
'{print $3}'
)
if
mosquitto_pub
-h
$ip_adr
-p
31883
-u
123456
-t
v1/devices/me/attributes
-f
test-mqtt.json
-q
1
-d
;
then
if
mosquitto_pub
-h
$ip_adr
-p
31883
-u
123456
-t
v1/devices/me/attributes
-f
/usr/local/bin/
test-mqtt.json
-q
1
-d
;
then
exit
0
exit
0
else
else
exit
1
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment