@@ -219,15 +219,15 @@ bool pointperfectProvisionDevice()
219219
220220 do
221221 {
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 ],
224224 btMACAddress[2 ], btMACAddress[3 ], btMACAddress[4 ],
225- btMACAddress[5 ]); // Get ready for JSON
225+ btMACAddress[5 ], productVariant ); // Get ready for JSON
226226
227227#ifdef WHITELISTED_ID
228228 // 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 );
231231#endif // WHITELISTED_ID
232232
233233 // Given name must be between 1 and 50 characters
@@ -308,9 +308,9 @@ bool pointperfectProvisionDevice()
308308 }
309309 else if (ztpResponse == ZTP_DEACTIVATED && attemptNumber == 1 )
310310 {
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 );
314314
315315 systemPrintf (" This device has been deactivated. Please contact "
316316 " support@sparkfun.com to renew the PointPerfect "
@@ -321,9 +321,9 @@ bool pointperfectProvisionDevice()
321321 }
322322 else if (ztpResponse == ZTP_NOT_WHITELISTED && attemptNumber == 1 )
323323 {
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 );
327327
328328 systemPrintf (
329329 " This device is not whitelisted. Please contact "
@@ -1421,9 +1421,9 @@ void menuPointPerfect()
14211421 }
14221422 else if (incoming == 4 && pointPerfectIsEnabled ())
14231423 {
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 );
14271427 systemPrintf (" Device ID: %s\r\n " , hardwareID);
14281428 }
14291429 else if (incoming == ' c' && pointPerfectIsEnabled ())
0 commit comments