1

我想为 iphone 使用一个应用程序来访问磁力计数据并通过蓝牙将其传输到我的桌面以供实时使用。

我可以使用 TechBasic 做到这一点吗? https://itunes.apple.com/in/app/techbasic/id470781862?mt=8

4

1 回答 1

2

A CMMotionManager object is the gateway to the motion services provided by iOS. These services provide an app with accelerometer data, rotation-rate data, magnetometer data, and other device-motion data such as attitude.

Try to use CMMotionManager Class in iOS to read magnetometer data. Check This LINK-CMMotionManager

and Use CoreBluetooh Framework to transmit this data. Here is AppleCode Sample

Hope this will helps u.

于 2013-06-30T06:59:15.570 回答