Skip to content

Commit

Permalink
fix:test asdu UnmarshalBinary failed
Browse files Browse the repository at this point in the history
  • Loading branch information
wendy512 committed Dec 18, 2024
1 parent ff75024 commit b37b6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/server_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type myServerHandler struct {
}

func (ms *myServerHandler) OnInterrogation(conn asdu.Connect, pack *asdu.ASDU, quality asdu.QualifierOfInterrogation) error {
_ = pack.SendReplyMirror(conn, asdu.ActivationCon)
//_ = pack.SendReplyMirror(conn, asdu.ActivationCon)
// TODO
_ = asdu.Single(conn, false, asdu.CauseOfTransmission{Cause: asdu.InterrogatedByStation}, commonAddr, asdu.SinglePointInfo{
Ioa: 100,
Expand All @@ -25,7 +25,7 @@ func (ms *myServerHandler) OnInterrogation(conn asdu.Connect, pack *asdu.ASDU, q
Value: asdu.DPIDeterminedOn,
Qds: asdu.QDSGood,
})
_ = pack.SendReplyMirror(conn, asdu.ActivationTerm)
//_ = pack.SendReplyMirror(conn, asdu.ActivationTerm)
return nil
}

Expand Down

0 comments on commit b37b6c3

Please sign in to comment.