Skip to content

Error creating Gateway #13

@harryhcs

Description

@harryhcs

Hi there, I'm using your nodes and trying to create a Gateway. Not clear what it expects but looking at the src it expects a payload with the following keys:

  • location
  • name
  • id
  • etc

I have node-red function that sets the payload:

msg.payload = { 
    "description": "MikroTik LtAP LR8",
    "discoveryEnabled": true,
    "gatewayProfileId": "1",
    "id": "3133303718004e00",
    "location": {
      "accuracy": 0,
      "altitude": 0,
      "latitude": 0,
      "longitude": 0,
      "source": "UNKNOWN"
    },
    "metadata": {},
    "boards": [
      {
        "fineTimestampKey": "string",
        "fpgaID": "string"
      }
    ],
    "name": "MikroTik-Roaming",
    "networkServerId": "1",
    "organizationId": "1",
    "tags": {}
}
        	
return msg;

It only returns this Error:

""TypeError: c.toArray is not a function""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions