2114 views|4 replies

8

Posts

0

Resources
The OP
 

Android & BlueNRG2 [Copy link]

 

I wrote an Android app and used the following Android code to send a character. I want to know which callback of Bluenrg will be called after sending the character?

BluetoothGattService gattService =

bluetooth_gatt .getService(java.util.UUID. fromString (serviceUuid));

BluetoothGattCharacteristic gattChar = gattService

.getCharacteristic(java.util.UUID. fromString (characteristicUuid));

gattChar.setValue(value);

bluetooth_gatt .writeCharacteristic(gattChar);

This post is from ST - Low Power RF

Latest reply

You can look at this example and find the code to receive data via Bluetooth and print it to the serial port. BlueNRG-1_2 DK 3.1.0\Project\BLE_Examples\BLE_Chat   Details Published on 2019-7-25 11:17
 
 

8

Posts

0

Resources
2
 

There is no error when running android studio, which means the sending is successful.

This post is from ST - Low Power RF
 
 
 

98

Posts

0

Resources
3
 

bluetooth_gatt .writeCharacteristic returns true to indicate successful transmission.

I have made cc2541/cc2640 APP, but never BlueNRG. Hope this can help you.

This post is from ST - Low Power RF
 
 
 

9702

Posts

24

Resources
4
 

You can look at this example and find the code to receive data via Bluetooth and print it to the serial port.

BlueNRG-1_2 DK 3.1.0\Project\BLE_Examples\BLE_Chat

This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

8

Posts

0

Resources
5
 

The sent byte is received in aci_gatt_attribute_modified_event.

This post is from ST - Low Power RF
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list