Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ npm run prepack # Automatically runs: clean + build:prod
### TypeScript Configuration

**Compiler settings:**
- Target: ES2022
- Target: esnext
- Module: NodeNext
- Module resolution: NodeNext
- Composite project enabled
Expand Down Expand Up @@ -482,6 +482,10 @@ docker compose -f docker-dev/compose.yaml down
- Search for `TODO`, `HACK`, `XXX` markers for areas needing work
- Maintain zero production dependencies policy
- Align with ZigBee 3.0 specification
- Zigbee specification (05-3474-23): Revision 23.1
- Base device behavior (16-02828-012): v3.0.1
- ZCL specification (07-5123): Revision 8
- Green Power specification (14-0563-19): Version 1.1.2
- Use Wireshark property names for consistency

### Testing Status
Expand Down
2 changes: 1 addition & 1 deletion src/dev/minimal-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class MinimalAdapter {
constructor(portOptions: PortOptions, streamRawConfig: StreamRawConfig, netParams: NetworkParameters, sendMACToZEP: boolean) {
this.#wiresharkSeqNum = 0; // start at 1
this.#wiresharkSocket = createSocket("udp4");
this.#wiresharkPort = process.env.WIRESHARK_ZEP_PORT ? Number.parseInt(process.env.WIRESHARK_ZEP_PORT) : DEFAULT_ZEP_UDP_PORT;
this.#wiresharkPort = process.env.WIRESHARK_ZEP_PORT ? Number.parseInt(process.env.WIRESHARK_ZEP_PORT, 10) : DEFAULT_ZEP_UDP_PORT;
this.#wiresharkAddress = process.env.WIRESHARK_ADDRESS ? process.env.WIRESHARK_ADDRESS : DEFAULT_WIRESHARK_IP;
this.#wiresharkSocket.bind(this.#wiresharkPort);

Expand Down
2 changes: 1 addition & 1 deletion src/dev/z2mdata-to-zohsave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async function convert(dataPath: string): Promise<void> {
const txPowerMatch = conf.match(/transmit_power: (\d*)$/m);

if (txPowerMatch) {
txPower = Number.parseInt(txPowerMatch[1]);
txPower = Number.parseInt(txPowerMatch[1], 10);
}
}

Expand Down
Loading