@@ -161,9 +161,10 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
161161 readProperty ( propertyName : string , options ?: WoT . InteractionOptions ) : Promise < any > {
162162 return new Promise < any > ( ( resolve , reject ) => {
163163 if ( this . properties [ propertyName ] ) {
164- if ( this . properties [ propertyName ] . writeOnly && this . properties [ propertyName ] . writeOnly === true ) {
164+ // writeOnly check skipped so far, see https://github.com/eclipse/thingweb.node-wot/issues/333#issuecomment-724583234
165+ /* if(this.properties[propertyName].writeOnly && this.properties[propertyName].writeOnly === true) {
165166 reject(new Error(`ExposedThing '${this.title}', property '${propertyName}' is writeOnly`));
166- }
167+ } */
167168
168169 let ps : PropertyState = this . properties [ propertyName ] . getState ( ) ;
169170 // call read handler (if any)
@@ -227,9 +228,10 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
227228 writeProperty ( propertyName : string , value : any , options ?: WoT . InteractionOptions ) : Promise < void > {
228229 return new Promise < void > ( ( resolve , reject ) => {
229230 if ( this . properties [ propertyName ] ) {
230- if ( this . properties [ propertyName ] . readOnly && this . properties [ propertyName ] . readOnly === true ) {
231+ // readOnly check skipped so far, see https://github.com/eclipse/thingweb.node-wot/issues/333#issuecomment-724583234
232+ /* if (this.properties[propertyName].readOnly && this.properties[propertyName].readOnly === true) {
231233 reject(new Error(`ExposedThing '${this.title}', property '${propertyName}' is readOnly`));
232- }
234+ } */
233235
234236 let ps : PropertyState = this . properties [ propertyName ] . getState ( ) ;
235237
0 commit comments