Can not connect HM10 to Android device

268
February 05, 2018, at 1:45 PM

I am having problem to to connect an Android device to my HM10 used with an Arduino. I have managed to connect it with an iPhone but problem when trying with Android. It gets to the function public boolean connect(final String address) which is a function that is called when trying to connect to a device but does not seem actually to connect to the device. The code I used this project has also earlier been used for RedBearLabs BLE Shield and the code worked for that BLE device. Same thing was for my Swift code for iPhone, but when changing to HM10 I only had to change the UUID and then everything was fine. This however does not seem to be the only change that I have to do for Android.

These are the UUID I use for Android:

public static String CLIENT_CHARACTERISTIC_CONFIG = "00002902-0000-1000-8000-00805f9b34fb";
public static String BLE_SHIELD_RX_TX = "0000FFF1-0000-1000-8000-00805f9b34fb";
public static String BLE_SHIELD_SERVICE = "0000FFF0-0000-1000-8000-00805f9b34fb";

The UUID for BLE_SHIELD_SERVICE and BLE_SHIELD_RX_TX I asked from the manufacturer (Feasycom).

These UUID is used for iPhone (should be the same?)

var characteristicUUID = CBUUID(string:"FFF1")
var serviceUUID = CBUUID(string:"FFF0")

Probably I forgotten to mention something important, so please ask if there is anything that is unclear.

Rent Charter Buses Company
READ ALSO
How to configure different templet by using Google Vision api?

How to configure different templet by using Google Vision api?

I have different receipt from different companies how to read the essential details from the receipt and auto detect by using google vison API? I want to auto detect some receipt by using Google vison APILet's say CVS/ Walmart receipt, I need to AutoDetect...

203
Android Architecture components: ViewModel returns null on configuration change

Android Architecture components: ViewModel returns null on configuration change

I`m developing a gallery app in kotlin using pixabay api, implementing Android Architecture components and retrofit to interact with the serverthe app works fine but when i change the configuration the view model returns null! what is the problem ?

241
Android Studio Spinner selects a list [duplicate]

Android Studio Spinner selects a list [duplicate]

This question already has an answer here:

238
Host Card Emulator cannot emit correct value

Host Card Emulator cannot emit correct value

Currently Im doing a POC for hosting a paycard by using this library

214