@@ -219,15 +219,15 @@ bool pointperfectProvisionDevice()
219
219
220
220
do
221
221
{
222
- char hardwareID[13 ];
223
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
222
+ char hardwareID[15 ];
223
+ snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X " , btMACAddress[0 ], btMACAddress[1 ],
224
224
btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ],
225
- btMACAddress[5 ]); // Get ready for JSON
225
+ btMACAddress[5 ], productVariant ); // Get ready for JSON
226
226
227
227
#ifdef WHITELISTED_ID
228
228
// Override ID with testing ID
229
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X" , whitelistID[0 ], whitelistID[1 ],
230
- whitelistID[2 ], whitelistID[3 ], whitelistID[4 ], whitelistID[5 ]);
229
+ snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X " , whitelistID[0 ], whitelistID[1 ],
230
+ whitelistID[2 ], whitelistID[3 ], whitelistID[4 ], whitelistID[5 ], productVariant );
231
231
#endif // WHITELISTED_ID
232
232
233
233
// Given name must be between 1 and 50 characters
@@ -308,9 +308,9 @@ bool pointperfectProvisionDevice()
308
308
}
309
309
else if (ztpResponse == ZTP_DEACTIVATED && attemptNumber == 1 )
310
310
{
311
- char hardwareID[13 ];
312
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
313
- btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ]);
311
+ char hardwareID[15 ];
312
+ snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X " , btMACAddress[0 ], btMACAddress[1 ],
313
+ btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ], productVariant );
314
314
315
315
systemPrintf (" This device has been deactivated. Please contact "
316
316
" [email protected] to renew the PointPerfect "
@@ -321,9 +321,9 @@ bool pointperfectProvisionDevice()
321
321
}
322
322
else if (ztpResponse == ZTP_NOT_WHITELISTED && attemptNumber == 1 )
323
323
{
324
- char hardwareID[13 ];
325
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
326
- btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ]);
324
+ char hardwareID[15 ];
325
+ snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X " , btMACAddress[0 ], btMACAddress[1 ],
326
+ btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ], productVariant );
327
327
328
328
systemPrintf (
329
329
" This device is not whitelisted. Please contact "
@@ -1421,9 +1421,9 @@ void menuPointPerfect()
1421
1421
}
1422
1422
else if (incoming == 4 && pointPerfectIsEnabled ())
1423
1423
{
1424
- char hardwareID[13 ];
1425
- snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X" , btMACAddress[0 ], btMACAddress[1 ],
1426
- btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ]);
1424
+ char hardwareID[15 ];
1425
+ snprintf (hardwareID, sizeof (hardwareID), " %02X%02X%02X%02X%02X%02X%02X " , btMACAddress[0 ], btMACAddress[1 ],
1426
+ btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ], btMACAddress[5 ], productVariant );
1427
1427
systemPrintf (" Device ID: %s\r\n " , hardwareID);
1428
1428
}
1429
1429
else if (incoming == ' c' && pointPerfectIsEnabled ())
0 commit comments