deb
Results
1
issues of
deb
我将 字符串 和 整数 转换成 json格式,然后用串口发送出去,字符串转换没问题,但整数转换得到的结果,用串口打印 %d 正常,用串口打印 %s 却显示 ld,不知道什么原因造成,而我需要发送的json数据,要能正常显示整数值。 请问如何解决 ` typedef struct { char TestString[10]; int TestInt; }Struct_test; cJSON *struct_to_json_Struct_test(void* struct_obj) { s2j_create_json_obj(json_obj_); Struct_test *struct_obj_ = (Struct_test...