return running_;
}
+void BluetoothGATTServer::NotifyAboutValueChange(const picojson::value& args,
+ picojson::object& out) {
+ ScopeLogger();
+
+ if (!initialized_) {
+ LoggerE("Server not started");
+ ReportError(common::PlatformResult{common::ErrorCode::ABORT_ERR, "Server not started"}, &out);
+ return;
+ }
+
+ auto result = service_.NotifyAboutValueChange(args);
+ if (result.IsError()) {
+ ReportError(result, &out);
+ return;
+ }
+
+ ReportSuccess(out);
+}
+
PlatformResult BluetoothGATTServer::Initialize() {
ScopeLogger();