projects
/
openhab-process.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bb5d24a
)
Обработка спецсимволов для упрощения работы с OpenHAB.
author
Roman Bazalevskiy
<rvb@rvb.name>
Sun, 16 Sep 2018 16:08:15 +0000
(19:08 +0300)
committer
Roman Bazalevskiy
<rvb@rvb.name>
Sun, 16 Sep 2018 16:08:15 +0000
(19:08 +0300)
mqtt-bt/scan-beacons
patch
|
blob
|
history
diff --git
a/mqtt-bt/scan-beacons
b/mqtt-bt/scan-beacons
index 34de7dc8f93830f9bafd074226a3c6fb8d2fc1e3..b73d6747abdad876a4937f85eecf9e5c7790ea5f 100644
(file)
--- a/
mqtt-bt/scan-beacons
+++ b/
mqtt-bt/scan-beacons
@@
-49,7
+49,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