Skip to content

WriteResponse does not properly type variabels in message #13

@sclaiborne

Description

@sclaiborne

WriteResponse currently can contain variables with the incorrect type representation. For example if you have a variable num of type UDINT.

{
  "type": "write",
  "data": {
    "num": 52,
}
{
  "type": "writeresponse",
  "data": {
    "num": 52,
}

as it should but...

{
  "type": "write",
  "data": {
    "num": "52",
}
{
  "type": "writeresponse",
  "data": {
    "num": "52",
}

This is incorrect, the write response as the server should always respond with the the value and the correct type. I would expect:

{
  "type": "write",
  "data": {
    "num": "52",
}
{
  "type": "writeresponse",
  "data": {
    "num": 52,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions