Dear Delphi developers

Dear Delphi developers,


I would like to know - Is it possible for any to make a program for communicating with bluetooth devices under iOS and with XE4? For example how to discover and show a list with devices programmatically. Sorry if my question is not so actual but I'm novice in this area. Please help me - I'm agree with a single and simple answer like yes or no (for example) because it is more than nothing. Is there a link or documentation about this theme - I can't find anything from weeks.
If the answer is no - is there a development plans in this direction?

-- 
Best regards
Dobrin Petkov

Comments

  1. You can use Bonjour to access Bluetooth as well as TCP/IP networks, I think? Hence, you should in theory be able to discover BT devices in the same way you would discover WiFi?

    Has the WiTap sample been translated for Delphi for iOS?
    https://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html

    ReplyDelete
  2. Thank you Lars but I really don't know the answer of this question. I'm a novice in this area in the full sence :)

    ReplyDelete
  3. That's just an opt-in requirement but it seems that it now requires you to write some low level C and objective-C API wrappers.  Still I would prototype this feature in native Objective-C and then port it to Delphi.   My opinion is that XE4 iOS development is still "beta", even though it has been released.

    ReplyDelete
  4. Hello all,

    I asked Marco Cantu for help...
    https://plus.google.com/109099686252303180605/posts?hl=en
    and he helped me as always. Below I copy for you some parts of our correspondence, as it might be useful. If anyone wants to add something - you are welcome.

    ......

    Marco:

    Delphi hasn't got specific support, you should use the related SDK or high-end services (like communication services) on top of BlueTooth.

    ......

    Me:

    ...I need to use native obj-c static libraries (.a files) and specific frameworks (ExternalAccessory and CoreBluetooth framework for example)
    Is there examples of the usage of this "communication services"? 
    Is there examples of the usage of externals SDK or libraries?
    Sory I'm a novice in XE4 and iOS and... probably I need just a small help for begining....

    ......

    Marco:
    From Delphi you can call .a files, you need to "convert" the header files (or the function calls you need) to Delphi language and use TMarshal for conversion. There are many examples in the RTL source code of Delphi XE4. An actual (simple) example of calling an SDk function is on http://blogs.embarcadero.com/ao/2013/05/01/39454. Refers to a demo that ships with product.

    So the options are:
    - connect to your ObjectiveC library, embedding the .a file into the app and calling the methods
    - redo the library in Delphi calling the SDK features in CoreBlootooth and the like.

    Both require some work, as we don't have the heders already translated. I know some third party did some headers translations, not sure how to get those.

    ......

    Many thanks Marco... 

    Best regards 
    Dobrin Petkov

    ReplyDelete

Post a Comment