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.

BIM ioT
#19
(13.05.2021, 09:53)admin Wrote: Modify the sendobjvalue function in bim-iot library and do a full script restart via disable/enable:
Code:
function sendobjvalue(obj)
  local data = json.encode({
    Type = 'NotificationPackage',
    Item = {
      Name = obj.name,
      State = encodevalue(obj.value, obj.dtype),
      Type = obj.dtype,
      Editable = 2, -- allow read/write
      Link = ''
    },
    TimeStamp = timestamp()
  })

  wsclient:send(data)
end

HI,

They finally  tested the ws connection sending commands from their side: it doesn't work. 
They try to on/off a led or to set temperature on a termostate, but nothing happens.
They json strings they are sending are like: 

    {
  “Action”:“Post”
  “Controller”:“Items”
  “ItemName”:“Led 1”
  “ItemState”:“ON”
}

or
    {
  “Action”:“Post”
  “Controller”:“Items”
  “ItemName”:“Temperatura”
  “ItemState”:“22.0”
}

But no success.

Another problem is that they are receiving the status of ALL objects, ALL in read / write mode.

instead we must be able to choose which objects to transmit and specify whether to read or write or both.

I am grateful for your help.

BR 

Peppe
Reply


Messages In This Thread
BIM ioT - by gdimaria - 06.05.2021, 15:05
RE: BIM ioT - by admin - 06.05.2021, 15:08
RE: BIM ioT - by gdimaria - 07.05.2021, 07:54
RE: BIM ioT - by gdimaria - 06.05.2021, 15:11
RE: BIM ioT - by admin - 07.05.2021, 07:59
RE: BIM ioT - by gdimaria - 10.05.2021, 16:16
RE: BIM ioT - by admin - 11.05.2021, 07:08
RE: BIM ioT - by gdimaria - 11.05.2021, 09:30
RE: BIM ioT - by admin - 11.05.2021, 09:32
RE: BIM ioT - by gdimaria - 11.05.2021, 09:41
RE: BIM ioT - by admin - 11.05.2021, 09:42
RE: BIM ioT - by gdimaria - 11.05.2021, 10:24
RE: BIM ioT - by admin - 13.05.2021, 06:23
RE: BIM ioT - by gdimaria - 13.05.2021, 09:05
RE: BIM ioT - by admin - 13.05.2021, 09:06
RE: BIM ioT - by gdimaria - 13.05.2021, 09:51
RE: BIM ioT - by admin - 13.05.2021, 09:53
RE: BIM ioT - by gdimaria - 13.05.2021, 10:01
RE: BIM ioT - by gdimaria - 28.05.2021, 11:07
RE: BIM ioT - by admin - 28.05.2021, 13:57
RE: BIM ioT - by gdimaria - 06.06.2021, 16:35
RE: BIM ioT - by admin - 07.06.2021, 09:59
RE: BIM ioT - by gdimaria - 09.06.2021, 15:17
RE: BIM ioT - by admin - 10.06.2021, 06:05
RE: BIM ioT - by gdimaria - 10.06.2021, 07:48
RE: BIM ioT - by admin - 10.06.2021, 07:53
RE: BIM ioT - by gdimaria - 10.06.2021, 08:26
RE: BIM ioT - by gdimaria - 10.06.2021, 09:27
RE: BIM ioT - by admin - 10.06.2021, 10:03
RE: BIM ioT - by gdimaria - 10.06.2021, 17:34

Forum Jump: