add notes
This commit is contained in:
@@ -7,11 +7,8 @@ import assert from "assert";
|
|||||||
|
|
||||||
const hstrToU8 = (hs) => new Uint8Array(hs.match(/../g).map((h) => parseInt(h, 16)));
|
const hstrToU8 = (hs) => new Uint8Array(hs.match(/../g).map((h) => parseInt(h, 16)));
|
||||||
describe("integration", () => {
|
describe("integration", () => {
|
||||||
it("emits login event upon logging in", () => {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
it("discovers a device", () => {
|
it("discovers a device", () => {
|
||||||
|
// LanSearch (server) -> PunchPkt (camera) -> discovered serial
|
||||||
buildLogger("trace");
|
buildLogger("trace");
|
||||||
const EXPECTED_SERIAL = "BATD156362WONJM";
|
const EXPECTED_SERIAL = "BATD156362WONJM";
|
||||||
const punchPkt = "f14100144241544400000000000262ca574f4e4a4d000000";
|
const punchPkt = "f14100144241544400000000000262ca574f4e4a4d000000";
|
||||||
@@ -30,4 +27,11 @@ describe("integration", () => {
|
|||||||
mockSock.close();
|
mockSock.close();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
// TODO
|
||||||
|
it("emits login event upon logging in", () => {
|
||||||
|
// LanSearch (server) -> PunchPkt (camera)
|
||||||
|
// vvv need to call makeSession vvv
|
||||||
|
// P2pRdy (server) -> P2pRdy (camera)
|
||||||
|
// Drw<Login> (server) -> [DrwAck, Drw<LoginAck>]
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user