-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Created CoAPURI class to contain the URIs that can be used in CoAP transmissions. - Updated other files that used the old constants from CoAPTxRequestPacket. -Removed old constants from CoAPTxRequestPacket. Signed-off-by: Héctor González <[email protected]>
- Loading branch information
1 parent
9ff6a9b
commit 208b75d
Showing
6 changed files
with
98 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
library/src/main/java/com/digi/xbee/api/models/CoAPURI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Copyright 2017, Digi International Inc. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | ||
package com.digi.xbee.api.models; | ||
|
||
/** | ||
* Class containing the different constants that can be used as Uniform Resource | ||
* Identifier (URI) when working with CoAP transmissions. | ||
* | ||
* @since 1.2.1 | ||
*/ | ||
public class CoAPURI { | ||
|
||
/** | ||
* URI for data transmissions (PUT). | ||
*/ | ||
public static final String URI_DATA_TRANSMISSION = "XB/TX"; | ||
|
||
/** | ||
* URI for AT Command operation (PUT or GET). | ||
*/ | ||
public static final String URI_AT_COMMAND = "XB/AT"; | ||
|
||
/** | ||
* URI for IO operation (POST). | ||
*/ | ||
public static final String URI_IO_SAMPLING = "XB/IO"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.