Browse Source

Missing arguments in UDP and ETH connect functions

Caleb James DeLisle 5 years ago
parent
commit
902365945f
2 changed files with 4 additions and 2 deletions
  1. 2 1
      interface/ETHInterface_admin.c
  2. 2 1
      interface/UDPInterface_admin.c

+ 2 - 1
interface/ETHInterface_admin.c

@@ -198,7 +198,8 @@ void ETHInterface_admin_register(struct EventBase* base,
             { .name = "password", .required = 0, .type = "String" },
             { .name = "publicKey", .required = 1, .type = "String" },
             { .name = "macAddress", .required = 1, .type = "String" },
-            { .name = "login", .required = 0, .type = "String" }
+            { .name = "login", .required = 0, .type = "String" },
+            { .name = "peerName", .required = 0, .type = "String" }
         }), admin);
 
     Admin_registerFunction("ETHInterface_beacon", beacon, ctx, true,

+ 2 - 1
interface/UDPInterface_admin.c

@@ -348,7 +348,8 @@ void UDPInterface_admin_register(struct EventBase* base,
             { .name = "password", .required = 0, .type = "String" },
             { .name = "publicKey", .required = 1, .type = "String" },
             { .name = "address", .required = 1, .type = "String" },
-            { .name = "login", .required = 0, .type = "String" }
+            { .name = "login", .required = 0, .type = "String" },
+            { .name = "peerName", .required = 0, .type = "String" }
         }), admin);
 
     Admin_registerFunction("UDPInterface_listDevices", listDevices, ctx, true, NULL, admin);