fix failure to correctly pass devids into linux client

This commit is contained in:
Eric House 2023-07-18 21:35:17 -07:00
parent 76c0ce3a2e
commit 280fc3bfe1
2 changed files with 2 additions and 1 deletions

View file

@ -2869,6 +2869,7 @@ main( int argc, char** argv )
mainParams.connInfo.mqtt.port = atoi(optarg);
break;
case CMD_INVITEE_MQTTDEVID:
XP_ASSERT( 16 == strlen(optarg) );
mainParams.connInfo.mqtt.inviteeDevIDs =
g_slist_append( mainParams.connInfo.mqtt.inviteeDevIDs, optarg );
types_addType( &mainParams.conTypes, COMMS_CONN_MQTT );

View file

@ -207,7 +207,7 @@ class Device():
if self.inviteeMQTTDevIDs:
args += [ '--force-invite' ]
for idid in self.inviteeMQTTDevIDs:
asHexStr = '{:16X}'.format(idid)
asHexStr = '{:016X}'.format(idid)
args += ['--invitee-mqtt-devid', asHexStr]
self.proc = subprocess.Popen(args, stdout = subprocess.DEVNULL,