iOS Question My 1st iOS Questions. Background BLE2 reading (long running Task), Graph Libraries

DonManfred

Expert
Licensed User
Longtime User
Hello all,

this is my 1st Thread in the iOS Forum.
For a new project i do need to develop the iOS Version too (beside B4A).

This Thread is just to get some hints from you, the B4I Experts, where to start for a specific task. :)

The main Task of the App is to get Data from a BLE Device. Ideally as long as the user want it. Sidenode: For Android it is planned to build a Kiosk app (deviceowner) to be able to scan the BLE every 10 Seconds.

How would i start with this in B4I?



Based on the Value(s) returned by the BLE device we need to show them in two Graphs. One for the active value (like tachometer), and som Bargraphs showing the last x Values.

What Graph library would you recommend to look at?
We need to have Bargraphs shown.

And a Graph like
kisspng-dial-tachometer-clip-art-speedometer-5adc83b8564f27.7545872515244010803535.png


I appreciate any kind of tips, links.

Future questions should be expected :)

PS: this is a question before Developing anything. I do have a B4i License (with hosted Builder), the iOS device i´ll get in some weeks.. I also need to create a Developeraccount first. Just want to start this thread to get Answers in beforehand ;-)
 

JordiCP

Expert
Licensed User
Longtime User
That's good news for the B4I users! Make sure to read the forum guidelines and use code tags(sorry, I couldn't resist!!:p)

For B4I graphs, you can test xChart and also THIS from @JanPRO. Time ago had to modify a project that used a similar solution and worked nice!
For the tachometer, not sure if something exists if you need a customized desgin, but I'd recommend doing it the 'old-school' way. A background and a 'rotated needle' all encapsuated in a simple class

BLE in iOS works similar to Android (based on my experience, even better, but I guess it will depend on the use case). There are some slight differences such as that there is no BLA (functionality is integrated into the same BLE) and other minor details when scanning and reading, but they are more due to the OS than the lib itself.

The rest of things when you start (building the bridge, creating certificates, permissions, background modes, understanding the events...) can be a bit confusing at the beginning, but not difficult at all :)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

josejad

Expert
Licensed User
Longtime User
Hi DonManfred:

No idea about B4i, but this class is B4X compatible. I'm sure you know a lot of resources existing in the forum, so not sure if you have seen this one and it's not apropiate for you.

 
Upvote 0

klaus

Expert
Licensed User
Longtime User
For Graphs you can have a look at xChart as already suggested.
For the tachometer you could have a look at xGauges.
Both libraries are b4xlibs, therefore cross platform, valid for B4A, B4i and B4J and written with B4X.
I have no experience in BLE.

A simple advice: use as much as possible XUI and B4XViews, which allows more common code.
You can copy a B4A layout to B4i.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Welcome DonManfred to the B4i bunch. I agree with previous two users for the xGauges.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I'm sure you know a lot of resources existing in the forum, so not sure if you have seen this one and it's not apropiate for you.
Again thank you for reminding me this library. I already seen it in the past and also put a Like on it. But as i never used any Graphs in my apps i forgot about it.

XUIGaugeView is a perfect one for the Tachometer-Graph!

I now need to find a crossplatform Bargraph library.
Example:

I need to show the last X readings of a Value. Say, for example, the Values are from 0 to 100. And i need to show the last 30 or 60 redings.

I used @klaus [b4x]XGraph here. It fits also perfectly ?

 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Hello all,

this is my 1st Thread in the iOS Forum.
For a new project i do need to develop the iOS Version too (beside B4A).

This Thread is just to get some hints from you, the B4I Experts, where to start for a specific task. :)

The main Task of the App is to get Data from a BLE Device. Ideally as long as the user want it. Sidenode: For Android it is planned to build a Kiosk app (deviceowner) to be able to scan the BLE every 10 Seconds.

How would i start with this in B4I?



Based on the Value(s) returned by the BLE device we need to show them in two Graphs. One for the active value (like tachometer), and som Bargraphs showing the last x Values.

What Graph library would you recommend to look at?
We need to have Bargraphs shown.

And a Graph like
View attachment 88403


I appreciate any kind of tips, links.

Future questions should be expected :)

PS: this is a question before Developing anything. I do have a B4i License (with hosted Builder), the iOS device i´ll get in some weeks.. I also need to create a Developeraccount first. Just want to start this thread to get Answers in beforehand ;-)
WELCOME to the DARK side ? ??

Walter
 
Upvote 0
Top