| | |
| | | pthread_attr_init(&attr); |
| | | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);//detached |
| | | pthread_create(&pid, &attr, StatusListenThread, NULL); |
| | | |
| | | AppTimer_add(ReqRtkPlatformConfigTimeout, D_SEC(2)); |
| | | MA_ReqRtkPlatformConfig(); |
| | | } |
| | | |
| | | static void ReqRtkPlatformConfigTimeout(union sigval sig) |
| | |
| | | strcpy(deviceInfo.imei, p->imei); |
| | | SetPlatformTxPhoneNum(p->phone); |
| | | |
| | | platformStatus.registed = p->registered; |
| | | platformStatus.registed = 0;//p->registered; |
| | | platformStatus.platformKeyLength = strlen(p->password) / 2; |
| | | |
| | | if (platformStatus.platformKeyLength > 0) { |