Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Disable device whitelist on 1.4.6

$
0
0

Hello,

I’ve updated the firmware of my Conduit AEP to the 1.4.6 version. I would like to know if there’s some way to disable the device whitelist feature.

I have tried the following ways:
1- GUI. I didn’t find any option to do it
2- Modifying by hand the /var/config/lora/lora-network-server.conf file, putting “false” in the whitelist “enabled” option:
"whitelist" : {
"devices" : [
{
"appeui" : myAppEui,
"appkey" : myAppKey,
"class" : "A",
"deveui" : devEuiOfDevice
}
],
"enabled" : false,
"maxSize" : 2000
}

I’ve tried both with the lora-network-server running and while it was stopped (/etc/init.d/lora-network-server stop|start|restart), neither work.

3- Sending HTTP requests to modify the value of the “enabled” option, both with PUT and POST methods


admin@mtcdt:~# curl 127.0.0.1/api/loraNetwork/whitelist/enabled -X PUT -d '"false"' -H 'ContentType: application/json'
{
"code" : 400,
"error" : "path [loraNetwork/whitelist/enabled] leads to an incompatible element. Path Element Type [BOOL] Update Data Element Type [NULL]",
"status" : "fail"
}

admin@mtcdt:~# curl 127.0.0.1/api/loraNetwork/whitelist.enabled -X PUT -d '"false"' -H 'ContentType: application/json'
{
"code" : 400,
"error" : "Relative path [whitelist.enabled] does not lead to an element to update within model [loraNetwork]",
"status" : "fail"
}
admin@mtcdt:~#curl 127.0.0.1/api/loraNetwork/whitelist/enabled -X POST -d '"false"' -H 'ContentType: application/json'
{
"code" : 400,
"error" : "Path [whitelist/enabled] does not lead to an array",
"status" : "fail"
}
admin@mtcdt:~#curl 127.0.0.1/api/loraNetwork/whitelist.enabled -X POST -d '"false"' -H 'ContentType: application/json'
{
"code" : 400,
"error" : "Path [whitelist.enabled] does not lead to an array",
"status" : "fail"
}

on the other hand, the GET method works as expected:

admin@mtcdt:~# curl 127.0.0.1/api/loraNetwork/whitelist/enabled
{
"code" : 200,
"result" : true,
"status" : "success"
}

Is it possible to deactivate it somehow?

Thanks


Viewing all articles
Browse latest Browse all 7111

Trending Articles