Android Question BLE app update issue

V. Solakis

New Member
Licensed User
Longtime User
Hello!

After a few years away from B4A, I'm stuck on a problem while updating an old project.

The project is a simple app that makes use of BLE for connecting getting some data from a sensor module.

The old was developed using the following:

Old App version:
  • developed with B4A version: 11.2.0 (Core)
  • file name: 4_Datalogger_J4
  • B4A Bridge version: 2.67
  • Libraries versions:
  • BLE2: 1.39
  • B4XPAges: 1.10
  • Runtime permissions: 1.12
  • Runs fine on Samsung Galaxy J4+ (SM-J4115PN) with Android version 9 / One UI 1.0


To update the app, I have installed the latest version of the IDE on my PC and also updated
the app using code from the latest BLE example by Erel.

The problem I encounter is:
after installing the app on the phone when I click the "Find" button to scan for devices nothing is happening.
It is like the button does not have any code/function associated with it.

This is the info of the updated app:

New App version:
  • developed with B4A version: 13.10 (Core)
  • file name: 5_Datalogger_J4
  • B4A Bridge version: 2.67
  • Libraries versions:
  • BLE2: 1.41
  • B4XPAges: 1.12
  • Runtime permissions: 1.20
  • Does not scan for devices, Samsung Galaxy A05s (SM-A057G/DSN) with Android version 14 / One UI 6.1

I attach both app projects.

Any help would be much appreciated.

Thank you in advance

Vas
 

Attachments

  • 4_Datalogger_J4.zip
    14.5 KB · Views: 87
  • 5_Datalogger_J4.zip
    14.9 KB · Views: 89

Erel

B4X founder
Staff member
Licensed User
Longtime User
Does the updated example work on your device?

 
Upvote 0

V. Solakis

New Member
Licensed User
Longtime User
Hi Erel,

Thank you for your reply.

The example seems to scan and detect properly ble devices.

I attach a screenshot of the Logs when using the example.

Any suggestions?

Vas
 

Attachments

  • Logs screenshot.png
    Logs screenshot.png
    41.9 KB · Views: 73
Upvote 0
Top