jamiewest / signalr_core

ASP.NET Core SignalR Dart Client
https://pub.dev/packages/signalr_core
MIT License
90 stars 62 forks source link

complex objects #51

Closed ricastro closed 3 years ago

ricastro commented 3 years ago

Hi, I'm having trouble with a message with the following Schema:

    "deviceId": 37,
    "state": 0,
    "value": "0",
    "values": {
        "autoMemTemp": "21",
        "coldMemTemp": "25",
        "fanDir": "0",
        "fanRate": "A",
        "heatMemTemp": "25",
        "humidity": "0",
        "insideTemperature": "23",
        "mode": "7",
        "outsideTemperature": "18",
        "power": "0",
        "sensorHumidity": "0",
        "temp": "21"
    }
}

my code is basically this: ' deviceHubConnection.on("status", onReceiveDeviceStatusMessage); void onReceiveDeviceStatusMessage(List message) {...} '

The server is returning the value correctly (tried on Angular client), but when I receive the "List message" in flutter, the values property is always null.

Any idea why this happens?