thingy52_web_bluetooth
Advanced tools
Comparing version 1.1.6 to 1.2.0
@@ -149,4 +149,4 @@ /* | ||
if (!this.hasProperty("write", ch)) { | ||
const e = new Error(`The ${this.type} feature does not support the write method`); | ||
if (!this.hasProperty("write", ch) && !this.hasProperty("writeWithoutResponse", ch)) { | ||
const e = new Error(`The ${this.type} feature does not support the write or writeWithoutResponse method`); | ||
throw e; | ||
@@ -153,0 +153,0 @@ } |
@@ -59,2 +59,5 @@ /* | ||
import MotionConfigurationService from "./MotionConfigurationService.js"; | ||
import SoundConfigurationService from "./SoundConfigurationService.js"; | ||
import SpeakerDataService from "./SpeakerDataService.js"; | ||
import SpeakerStatusService from "./SpeakerStatusService.js"; | ||
@@ -159,2 +162,5 @@ class Thingy extends EventTarget { | ||
this.motionconfiguration = new MotionConfigurationService(this); | ||
this.soundconfiguration = new SoundConfigurationService(this); | ||
this.speakerdata = new SpeakerDataService(this); | ||
this.speakerstatus = new SpeakerStatusService(this); | ||
} | ||
@@ -161,0 +167,0 @@ |
{ | ||
"name": "thingy52_web_bluetooth", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"description": "API for connecting to and interacting with Nordic Semiconductor's Thingy:52 in the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
165346
40
3068