|
|
@ -110,6 +110,7 @@ class Wiz810MjDevice {
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
void _init(void);
|
|
|
|
void _init(void);
|
|
|
|
byte * _packBuffer(byte b0, byte b1, byte b2, byte b3);
|
|
|
|
byte * _packBuffer(byte b0, byte b1, byte b2, byte b3);
|
|
|
|
|
|
|
|
byte * _packBuffer(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5);
|
|
|
|
|
|
|
|
|
|
|
|
int _resetPin;
|
|
|
|
int _resetPin;
|
|
|
|
|
|
|
|
|
|
|
@ -162,6 +163,13 @@ void Wiz810MjDevice::_init(void) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
return _packBuffer(b0, b1, b2, b3, 0, 0); // Adds two bytes of padding
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5) {
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -169,10 +177,13 @@ byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
_scratchBuffer[1] = b1;
|
|
|
|
_scratchBuffer[1] = b1;
|
|
|
|
_scratchBuffer[2] = b2;
|
|
|
|
_scratchBuffer[2] = b2;
|
|
|
|
_scratchBuffer[3] = b3;
|
|
|
|
_scratchBuffer[3] = b3;
|
|
|
|
|
|
|
|
_scratchBuffer[4] = b4;
|
|
|
|
|
|
|
|
_scratchBuffer[5] = b5;
|
|
|
|
|
|
|
|
|
|
|
|
return _scratchBuffer;
|
|
|
|
return _scratchBuffer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|