question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sending and Receiving between Raspberry pi 3 and Android

See original GitHub issue

I’ve install Bleno in my raspberry pi 3, currently im able to send some plain text from android to raspberry pi 3, so how do i send some string back to Android ? Because I’ve tested with the callback function of onWriteRequest under new characteristic doesn’t work, or are there any ways to trigger the writing part?

echo.js onWriteRequest : function(data , offset, withoutResponse, callback) { this.value = data; ... if(this.value.toString == 'received_some_text_from_android') { // send plain text back to android } }

p/s: i’m very new to this, please bear with my false assumption

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:18

github_iconTop GitHub Comments

1reaction
newbielinuxusercommented, Mar 16, 2017

Agree with the ping pong example, would be glad if there’s sample about it =D

1reaction
storm1ercommented, Mar 15, 2017

same problem, if someone can give us a real ping pong example, that could be awesome 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

messaging between android/iphone and raspberry pi 3 model b
Hi. The main goal is.. setup raspberry like a "bluetooth-server", where any device could connect and receive some information via bluetooth.
Read more >
How to send messages to a Raspberry Pi 3 using an Android ...
If using BLE /Bluetooth , first you need to make either android phone or rasperry pi in central mode and the other in...
Read more >
Raspberry Pi to Android SPP Bluetooth communication
In this video, two way communication is established between Android and Raspberry Pi 3 B+ over Serial Port Profile (SPP) Bluetooth.
Read more >
Using Raspberry Pi 3 On-Board Bluetooth for Communication
We can send/receive data from/on Raspberry Pi over Bluetooth using CLI. This communication is helpful when we need to control any device ...
Read more >
Raspberry Pi Android App Communication - Instructables
1. For this instructables you'll need several things. An android phone or the emulator from android studio A raspberry pi (I tried B and 2B) An...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found