iOS Question Info.Plist

mrossen

Active Member
Licensed User
Longtime User
Hi,

Is there a way to add info to Info.Plist

I try to get some existing obj.c to Work with the new obj.c inline code. And thanks for that Erel. Thats Works perfect so far.

I am no big obj. C coder but I just copy/paste my code to B4i and it Works so far.

But I use the "ExternalAccessory" frame Work library and it has to have a special line in the info.plist.

I do not know why, but if it not there I can not create a stream

I upload a screendumb do show my problem

Mogens
 

Attachments

  • RVBT.jpg
    RVBT.jpg
    65.8 KB · Views: 430

mrossen

Active Member
Licensed User
Longtime User
Hi,

Is this the right way to do it? It still fails

#PlistExtra: <key>Supported external accessory protocols</key><string>com.RovingNetworks.btdemo</string>


Application_Start
Application_Active
CONNECTBLUETOOTH
ERROR - opening session failed as protocol com.RovingNetworks.btdemo is not declared in Info.plist
ERROR - /SourceCache/ExternalAccessory/ExternalAccessory-287/EASession.m:-[EASession dealloc] - 141 unable to close session for _accessory=0x16d45b00 and sessionID=65536
accessory: <EAAccessory: 0x16d45b00> {
connected:YES
connectionID:29531346
name: E-CRUISE II
manufacturer: Roving Networks
modelNumber: RN-42-APL-X
serialNumber:
firmwareRevision: 1.2.3
hardwareRevision: 4.5.6
protocols: (
"com.RovingNetworks.btdemo"
)
delegate: (null)
}
protocol: com.RovingNetworks.btdemo
session(null)
(null)
is.steamStatus: 0
is.hasByteAvalilable: 0
Open Input Stream
is.streamStatus: 0
is.hasByteAvalilable: 0
(null)
os.steamStatus: 0
os.hasSpaceAvalilable: 0
Open Output Stream
os.streamStatus: 0
os.hasSpaceAvalilable: 0
 
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
Hi Alberto,

Yes, I made a connection to the bluetooth module, I never managed to read the stream.

I made the most with inline code, but I am not very good to Objective C so I never succeded.

I have silent waited for the Serial bluetooth libeary, I hope Erel will make some day :)

I have ordered a BLE module a few days ago. I will give that at try,

Mogens
 
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
Hi Alberto,

That sounds great :) :) :)

I think there will be serveral in this forum there will look forward to that,

Mogens
 
Upvote 0

mrossen

Active Member
Licensed User
Longtime User
Hi Alberto

It is connected through what you call Classic bluetooth (SSP profile)

I don't know what iAP is but as far as I know you can only buy the module I used if you are member of Apple MFI program.

Mogens
 
Upvote 0
Top