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