| 724 | } |
| 725 | |
| 726 | simpleble_err_t BLELibBoard::simpleble_peripheral_read (simpleble_peripheral_t handle, |
| 727 | simpleble_uuid_t service, simpleble_uuid_t characteristic, uint8_t **data, size_t *data_length) |
| 728 | { |
| 729 | #ifndef STATIC_SIMPLEBLE |
| 730 | std::lock_guard<std::mutex> lock (BLELibBoard::mutex); |
| 731 | if (BLELibBoard::dll_loader == NULL) |
| 732 | { |
| 733 | safe_logger (spdlog::level::err, "BLELibBoard::dll_loader is not initialized"); |
| 734 | return SIMPLEBLE_FAILURE; |
| 735 | } |
| 736 | simpleble_err_t (*func) (simpleble_peripheral_t, simpleble_uuid_t, simpleble_uuid_t, uint8_t **, |
| 737 | size_t *) = (simpleble_err_t (*) (simpleble_peripheral_t, simpleble_uuid_t, |
| 738 | simpleble_uuid_t, uint8_t **, |
| 739 | size_t *))BLELibBoard::dll_loader->get_address ("simpleble_peripheral_read"); |
| 740 | if (func == NULL) |
| 741 | { |
| 742 | safe_logger ( |
| 743 | spdlog::level::err, "failed to get function address for simpleble_peripheral_read"); |
| 744 | return SIMPLEBLE_FAILURE; |
| 745 | } |
| 746 | |
| 747 | return func (handle, service, characteristic, data, data_length); |
| 748 | #else |
| 749 | return ::simpleble_peripheral_read (handle, service, characteristic, data, data_length); |
| 750 | #endif |
| 751 | } |
| 752 | |
| 753 | simpleble_err_t BLELibBoard::simpleble_peripheral_is_connected ( |
| 754 | simpleble_peripheral_t handle, bool *connected) |
nothing calls this directly
no test coverage detected