Hata şu şekilde değişti. function bilgileri sorgu ve cevap birbiriyle eşleşmiyor diyor. Sebebini anlamaya çalışıyorum.
{
metrics: UserRequestMetrics {
createdAt: 2022-02-28T10:51:59.434Z,
startedAt: 2022-02-28T10:51:59.435Z,
receivedAt: 2022-02-28T10:51:59.447Z
},
request: ModbusTCPRequest {
_id: 1,
_protocol: 0,
_length: 6,
_unitId: 1,
_body: WriteSingleRegisterRequestBody { _fc: 6, _address: 2, _value: 22 }
},
response: ModbusTCPResponse {
_id: 1,
_protocol: 0,
_bodyLength: 6,
_unitId: 1,
_body: WriteSingleRegisterResponseBody { _fc: 6, _address: 2, _value: 22 }
}
}
{
metrics: UserRequestMetrics {
createdAt: 2022-02-28T10:52:03.899Z,
startedAt: 2022-02-28T10:52:03.899Z,
receivedAt: 2022-02-28T10:52:03.917Z
},
request: ModbusTCPRequest {
_id: 2,
_protocol: 0,
_length: 6,
_unitId: 1,
_body: WriteSingleRegisterRequestBody { _fc: 6, _address: 2, _value: 22 }
},
response: ModbusTCPResponse {
_id: 2,
_protocol: 0,
_bodyLength: 6,
_unitId: 1,
_body: WriteSingleRegisterResponseBody { _fc: 6, _address: 2, _value: 22 }
}
}
[Arguments] {
'0': UserRequestError {
err: 'OutOfSync',
message: 'request fc and response fc does not match.',
response: undefined
}
}