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
Inverted comma for signal value
#1
i am usine wilhelmsk on my iPad and the signal give the value inside inverted comma.
So the value is not recognized 

How to take them out ?

Please see below :

Connection Log:
   Config: Host: 192.168.0.124 Port: 3000 REST: http http://192.168.0.124:3000/signalk/v1/api/ WS: ws://192.168.0.124:3000/signalk/v1/stream SSL: NO
   Connecting to websockets with ws://192.168.0.124:3000/signalk/v1/stream?stream=delta&subscribe=all
   Sent GET http://192.168.0.124:3000/signalk 200
   Received json: {
    endpoints =     {
        v1 =         {
            "signalk-http" = "http://192.168.0.124:3000/signalk/v1/api/";
            "signalk-tcp" = "tcp://192.168.0.124:8375";
            "signalk-ws" = "ws://192.168.0.124:3000/signalk/v1/stream";
            version = "1.16.0";
        };
    };
    server =     {
        id = "signalk-server-node";
        version = "1.16.0";
    };
}

Vessel Data:
{
  "environment" : {
    "outside" : {
      "humidity" : {
        "meta" : {
          "units" : "ratio",
          "description" : "Current outside air relative humidity"
        },
        "value" : "0.332000",
        "$source" : "OPnotifications.MQTT.humidite",
        "timestamp" : "2019-06-30T21:14:54.102Z",
        "values" : {
          "OPnotifications.MQTT.humidite" : {
            "value" : "0.332000",
            "timestamp" : "2019-06-30T21:14:54.102Z"
          }
Reply
#2
MQTT is all text so even if the value is being sent as a number from your arduino MQTT turns it into a text string. Easier to send data signalk, it will stay as a number.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)