@@ -16,7 +16,7 @@ import ApiClient from "../ApiClient";
16
16
import ArduinoProperty from '../model/ArduinoProperty' ;
17
17
import Error from '../model/Error' ;
18
18
import Property from '../model/Property' ;
19
- import PropertyValue from '../model/PropertyValue ' ;
19
+ import PropertyStringValue from '../model/PropertyStringValue ' ;
20
20
21
21
/**
22
22
* PropertiesV1 service.
@@ -208,26 +208,26 @@ export default class PropertiesV1Api {
208
208
209
209
210
210
/**
211
<
10000
code class="diff-text syntax-highlighted-line deletion">- * publish properties_v1
212
- * Publish a property value to MQTT
211
+ * send properties_v1
212
+ * Publish a property value to MQTT, as string
213
213
* @param {String } id The id of the thing
214
214
* @param {String } pid The id of the property
215
- * @param {module:model/PropertyValue } propertyValue PropertyValuePayload describes a property value
215
+ * @param {module:model/PropertyStringValue } propertyStringValue PropertyStringValuePayload describes a property value
216
216
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
217
217
*/
218
- propertiesV1PublishWithHttpInfo ( id , pid , propertyValue ) {
219
- let postBody = propertyValue ;
218
+ propertiesV1SendWithHttpInfo ( id , pid , propertyStringValue ) {
219
+ let postBody = propertyStringValue ;
220
220
// verify the required parameter 'id' is set
221
221
if ( id === undefined || id === null ) {
222
- throw new Error ( "Missing the required parameter 'id' when calling propertiesV1Publish " ) ;
222
+ throw new Error ( "Missing the required parameter 'id' when calling propertiesV1Send " ) ;
223
223
}
224
224
// verify the required parameter 'pid' is set
225
225
if ( pid === undefined || pid === null ) {
226
- throw new Error ( "Missing the required parameter 'pid' when calling propertiesV1Publish " ) ;
226
+ throw new Error ( "Missing the required parameter 'pid' when calling propertiesV1Send " ) ;
227
227
}
228
- // verify the required parameter 'propertyValue ' is set
229
- if ( propertyValue === undefined || propertyValue === null ) {
230
- throw new Error ( "Missing the required parameter 'propertyValue ' when calling propertiesV1Publish " ) ;
228
+ // verify the required parameter 'propertyStringValue ' is set
229
+ if ( propertyStringValue === undefined || propertyStringValue === null ) {
230
+ throw new Error ( "Missing the required parameter 'propertyStringValue ' when calling propertiesV1Send " ) ;
231
231
}
232
232
233
233
let pathParams = {
@@ -246,22 +246,22 @@ export default class PropertiesV1Api {
246
246
let accepts = [ 'application/vnd.goa.error+json' , 'text/plain' ] ;
247
247
let returnType = null ;
248
248
return this . apiClient . callApi (
249
- '/v1/things/{id}/properties/{pid}/publish ' , 'PUT' ,
249
+ '/v1/things/{id}/properties/{pid}/send ' , 'PUT' ,
250
250
pathParams , queryParams , headerParams , formParams , postBody ,
251
251
authNames , contentTypes , accepts , returnType , null
252
252
) ;
253
253
}
254
254
255
255
/**
256
- * publish properties_v1
257
- * Publish a property value to MQTT
256
+ * send properties_v1
257
+ * Publish a property value to MQTT, as string
258
258
* @param {String } id The id of the thing
259
259
* @param {String } pid The id of the property
260
- * @param {module:model/PropertyValue } propertyValue PropertyValuePayload describes a property value
260
+ * @param {module:model/PropertyStringValue } propertyStringValue PropertyStringValuePayload describes a property value
261
261
* @return {Promise } a {@link https://www.promisejs.org/|Promise}
262
262
*/
263
- propertiesV1Publish ( id , pid , propertyValue ) {
264
- return this . propertiesV1PublishWithHttpInfo ( id , pid , propertyValue )
263
+ propertiesV1Send ( id , pid , propertyStringValue ) {
264
+ return this . propertiesV1SendWithHttpInfo ( id , pid , propertyStringValue )
265
265
. then ( function ( response_and_data ) {
266
266
return response_and_data . data ;
267
267
} ) ;
0 commit comments