From: Roman Bazalevskiy Date: Sun, 16 Sep 2018 16:08:15 +0000 (+0300) Subject: Обработка спецсимволов для упрощения работы с OpenHAB. X-Git-Url: https://git.rvb.name/openhab-process.git/commitdiff_plain/daa57f38fb9540a14593936b6886d47800abce9c?ds=sidebyside;hp=bb5d24ae6623bf629268bccea47ab9a2cac1aeef Обработка спецсимволов для упрощения работы с OpenHAB. --- diff --git a/mqtt-bt/scan-beacons b/mqtt-bt/scan-beacons index 34de7dc..b73d674 100644 --- 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