MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / receivePlayerState

Method receivePlayerState

src/audio_play/Play_Service.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void Play_Service::receivePlayerState(BLEDevice central, BLECharacteristic characteristic) {
35 characteristic.readValue(&_player_state, sizeof(_player_state));
36 audio_player.set_state(_player_state);
37}
38
39void Play_Service::writePlayerState(uint8_t state) {
40 if (!_available) return;

Callers

nothing calls this directly

Calls 1

set_stateMethod · 0.80

Tested by

no test coverage detected