projects
/
openhab-process.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
26d1617
)
Merge branch 'master' of rvb.name:openhab-process
author
Roman Bazalevskiy
<rvb@rvb.name>
Sun, 16 Sep 2018 16:08:55 +0000
(19:08 +0300)
committer
Roman Bazalevskiy
<rvb@rvb.name>
Sun, 16 Sep 2018 16:08:55 +0000
(19:08 +0300)
mqtt-bt/scan-beacons
patch
|
blob
|
history
diff --git
a/mqtt-bt/scan-beacons
b/mqtt-bt/scan-beacons
index a574f664249410ca789b671eefe37233a21e2779..17e553308c15a067544f4b337a62603469215b39 100644
(file)
--- a/
mqtt-bt/scan-beacons
+++ b/
mqtt-bt/scan-beacons
@@
-55,7
+55,9
@@
end
function mqtt_encode(str)
if (str) then
str = string.gsub (str, "\n", "")
+ str = string.gsub (str, ":", "-")
str = string.gsub (str, "/", "-")
+ str = string.gsub (str, " ", "_")
end
return str
end