\Tests\Unit\IqrfNetModule\ModelsDpaRawManagerTest

Tests for DPA Raw request and response manager

Summary

Methods
Properties
Constants
readJsonResponse()
testSend()
testValidatePacketInvalid()
testValidatePacketValid()
testUpdateNadr()
testParseResponseBroadcast()
testParseResponseOsParser()
testParseResponseWithoutParser()
testGetPacketRequest()
testGetPacketResponse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

readJsonResponse()

readJsonResponse(  mType) : mixed||string|int

Reads the IQRF JSON API response

Parameters

mType

Message type

Returns

mixed||string|int —

IQRF JSON API response

testSend()

testSend() : 

Tests the function to send a DPA packet

Returns

testValidatePacketInvalid()

testValidatePacketInvalid() : 

Tests the function to a validation of DPA packet (invalid packet)

Returns

testValidatePacketValid()

testValidatePacketValid() : 

Tests the function to a validation of DPA packet (valid packet)

Returns

testUpdateNadr()

testUpdateNadr() : 

Tests the function to update a network address in the DPA packet

Returns

testParseResponseBroadcast()

testParseResponseBroadcast() : 

Tests the function to parse a broadcast DPA response

Returns

testParseResponseOsParser()

testParseResponseOsParser() : 

Tests the function to parse DPA OS response

Returns

testParseResponseWithoutParser()

testParseResponseWithoutParser() : 

Tests the function to parse DPA response (without parser)

Returns

testGetPacketRequest()

testGetPacketRequest() : 

Tests the function to get a DPA packet from the JSON DPA request

Returns

testGetPacketResponse()

testGetPacketResponse() : 

Tests the function to get a DPA packet from the JSON DPA response

Returns