I new in scala language.
I hame a method what takes on input CoapExchange object:
def handlePOST (request: CoapExchange) {
.....
How to convert org.eclipse.californium.core.server.resources.CoapExchange
object to Byte[]
in scala
Thanks!!!
I new in scala language.
I hame a method what takes on input CoapExchange object:
def handlePOST (request: CoapExchange) {
.....
How to convert org.eclipse.californium.core.server.resources.CoapExchange
object to Byte[]
in scala
Thanks!!!
So, let's look at the source
And we find
/**
* Gets the request payload as byte array.
*
* @return the request payload
*/
public byte[] getRequestPayload() {
return exchange.getRequest().getPayload();
}
or you can use the documentation here