/** * Request to write a <b> Objlnk Single-Instance Resource</b> using the given content format (TLV, JSON, TEXT). * * @exception InvalidRequestException if bad @{link ContentFormat} format was used. */ public WriteRequest(ContentFormat contentFormat, int objectId, int objectInstanceId, int resourceId, ObjectLink value) throws InvalidRequestException { this(Mode.REPLACE, contentFormat, new LwM2mPath(objectId, objectInstanceId, resourceId), LwM2mSingleResource.newObjectLinkResource(resourceId, value)); }
public static ReadResponse success(int resourceId, ObjectLink value) { return new ReadResponse(ResponseCode.CONTENT, LwM2mSingleResource.newObjectLinkResource(resourceId, value), null); }