Simple BLE Read, Write Example

I was able to download nRF Connect app from the Google Play store and connect to the Artemis using the example BLE code. I was able to send x3 different “Immediate Alert” codes from the phone app to the Artemis (“WRITE”) however I would now like to send codes from the Artemis to the phone ( “READ”).

I see that under “Link Loss” there is an “Alert Level” that supports both READ and WRITE. What I would like to do is use the Serial Monitor to keyboard type in a code and have the Artemis send that code to the phone app. Is there some hacky but reliable way of doing this?

I am creating an embedded prototype with a companion app. I suspect that for now at least, I will send off bursts of these alert levels so that they match some lookup table that contains the data I need to Read and Write. Unless any of you have another way of doing this. Thank you for your input.

I have created a server app for the Artemis. It can do a number of aspects including a simple “chat” between client and server.

That might help you.

The client I have created is either running on Linux (Ubuntu or Raspberry) or on another Apollo3 based board. The source software and documentation is available on https://github.com/paulvha/apollo3 as BLE_amdtp_arduino or BLE_amdtp_raspPI

Here’s an example of paulhva’s server (modified) communicating with an Android app for robot control. Sends commands that are echo’d back and responds to enq with ack to reset a WatchDogTimer. If WDT not reset, robot reboots, stopping it , which prevents falling off roof should communication fail for some reason.

https://github.com/kerryeven/AndroidArt … UartClient