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 whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wind Speed Apparent
#1
Hi!

I have a websocket up and running on Raspberry Pico W in MicroPython. Pico is connected to an anemomiter and the pico is calculating wind speed correct on the pico. 

All delta messages works fine and updates the paths as they should, except for enviroment.wind.speedApperent:

mesg4 = {
  "context": "vessels.urn:mrnConfusedignalk:uuid:f54f46bf-f256-422f-98f5-39cf5421a99a",
  "updates": [
    {
      "source": {
        "label": "Pico W",
      },
      "values":
        {
          "path": "environment.wind.speedApparent",
          "value": meter_sec
        },
    }
  ]
}

Every time I get a loooong TypeError in the server log and no respons in the WebSocket: "TypeError: update.values.find is not a function at .................

Have tried updating the meta via a update message for environment.wind.speedApparent... Same TypeError!

Anyone have any ideas what to do... im stuck!
Reply
#2
Values should be an array.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)