Irak MayerStephanie Vicarte
Published © GPL3+

Home Intercom. Or You Rang! (Lurge, Addams Family)

A basic inter-communication project to send simple command messages to people in your proximity.

EasyProtip3 days67

Things used in this project

Hardware components

Rapid IoT Prototyping Kit
NXP Rapid IoT Prototyping Kit
×1
3 Model B+
Raspberry Pi 3 Model B+
×1
SparkFun Pro nRF52840 Mini
×1
GeeekPi nRF52840 Micro Dev Kit USB Dongle
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian
NXP MCUXpresso IDE

Story

Read more

Schematics

Rapid IoT Kit Web UI

Create application firmware
Progflow mvvxgladju

Code

BLE set characteristic function

C/C++
 ATMO_Status_t BLESendCmdOK_setValue(ATMO_Value_t *in, ATMO_Value_t *out) {
	// Convert to the desired write data type
	ATMO_Value_t convertedValue;
	ATMO_InitValue(&convertedValue);
	ATMO_CreateValueConverted(&convertedValue, ATMO_PROPERTY(BLESendCmdOK, readDataType), in);
   *((uint8_t *)convertedValue.data) = (uint8_t) 1;
	ATMO_BLE_GATTSSetCharacteristic(
		ATMO_PROPERTY(BLESendCmdOK, instance),
		ATMO_VARIABLE(BLESendCmdOK, bleCharacteristicHandle),
		convertedValue.size, 
		(uint8_t *)convertedValue.data,
		NULL);
	ATMO_FreeValue(&convertedValue);
	return ATMO_Status_Success;
}

Credits

Irak Mayer

Irak Mayer

4 projects • 3 followers
Stephanie Vicarte

Stephanie Vicarte

4 projects • 5 followers

Comments