Skip to content
dapplion edited this page Jul 24, 2018 · 3 revisions

Extended documentation to the DNP_VPN

Crossbar calls

Reply specifications

The response is a stringified object always contains three keys:

{
success: true / false
message: 'Error: package not found'
result: <object, array or string>
}

VPN procedures

domain: <event>.vpn.dnp.dappnode.eth
eventkwargsresult
addDeviceid{}
removeDeviceid{}
toggleAdminid{}
listDevices-[{ deviceObject }]
getParams-{param: paramValue, ...}
statusUPnP-{openPorts, UPnP, msg}
statusExternalIp-{externalIpResolves, attempts, INT_IP, EXT_IP}

deviceObject

{name: 'string',password: 'string',ip: 'string'}