/** * Request to write a <b> Float Single-Instance Resource</b> using the given content format (TEXT, TLV, JSON). * * @exception InvalidRequestException if bad @{link ContentFormat} format was used. */ public WriteRequest(ContentFormat contentFormat, int objectId, int objectInstanceId, int resourceId, double value) throws InvalidRequestException { this(Mode.REPLACE, contentFormat, new LwM2mPath(objectId, objectInstanceId, resourceId), LwM2mSingleResource.newFloatResource(resourceId, value)); }
public static ReadResponse success(int resourceId, double value) { return new ReadResponse(ResponseCode.CONTENT, LwM2mSingleResource.newFloatResource(resourceId, value), null); }
createDefaultIntegerValue(objectModel, resourceModel)); case FLOAT: return LwM2mSingleResource.newFloatResource(resourceModel.id, createDefaultFloatValue(objectModel, resourceModel)); case TIME: