char apple_string[]=“Apple Inc”;
u8 Is_Iphone =0;
void manufacturer_handle(char *msg)
{
puts(msg);
putchar(‘\n’);
log_printf(“app_len=%0d\n”,sizeof(apple_string));
if(0==memcmp(msg, apple_string, (sizeof(apple_string)-1))){
Is_Iphone=1;
log_printf(“\nPPPP\n”);
}else{
Is_Iphone=0;
log_printf(“\ntttyy\n”);
杰理之判断连接是否为Iphone还是Android手机【篇】
最新推荐文章于 2024-10-02 23:28:13 发布