This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

grp.create()
#9
Hi I have a function in a script for creating the necessarily groupadresses. But in this script it´s not creating the adresses, can I ask if someone can see what can be the issue? 

Code:
-- Skapa nödvändiga gruppadresser local function skapaGruppadresser()     local maxZoner = 25  -- Antagande att det finns max 25 zoner     for i = 100, 121 do         -- Adresser och namn för zonerna         local varaktighetAddress = '40/2/' .. i         local dagligVaraktighetAddress = '40/4/' .. i         local varaktighetName = 'Varaktighet Zon ' .. i         local dagligVaraktighetName = 'Daglig Varaktighet Zon ' .. i         -- Skapa adress för varaktighet om den inte redan finns         if not grp.find(varaktighetAddress) then             grp.create({datatype = 'dt.text', address = varaktighetAddress, name = varaktighetName})         end         -- Skapa adress för daglig varaktighet om den inte redan finns         if not grp.find(dagligVaraktighetAddress) then             grp.create({datatype = 'dt.text', address = dagligVaraktighetAddress, name = dagligVaraktighetName})         end     end     -- Skapa återställningsflagga om den inte redan finns     local resetAddress = '40/3/0'     if not grp.find(resetAddress) then         grp.create({datatype = 'dt.bool', address = resetAddress, name = 'Återställningsflagga'})     end end skapaGruppadresser()
Reply


Messages In This Thread
grp.create() - by tomnord - 02.02.2024, 13:34
RE: grp.create() - by admin - 02.02.2024, 13:38
RE: grp.create() - by tomnord - 12.02.2024, 08:20
RE: grp.create() - by fleeceable - 12.02.2024, 10:33
RE: grp.create() - by admin - 12.02.2024, 08:35
RE: grp.create() - by tomnord - 12.02.2024, 10:22
RE: grp.create() - by admin - 12.02.2024, 10:30
RE: grp.create() - by tomnord - 12.02.2024, 12:55
RE: grp.create() - by victor.back - 12.04.2024, 17:57
RE: grp.create() - by admin - 13.04.2024, 08:44
RE: grp.create() - by victor.back - 13.04.2024, 10:51

Forum Jump: