Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit d546a26

Browse files
committed
transport-http: add device probe
1 parent 492ac72 commit d546a26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/transport-http/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@meshtastic/transport-http",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"exports": {
55
".": "./mod.ts"
66
}

packages/transport-http/src/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class TransportHTTP implements Types.Transport {
1212
tls?: boolean,
1313
): Promise<TransportHTTP> {
1414
const connectionUrl = `${tls ? "https" : "http"}://${address}`;
15-
// replace with device probe
15+
await fetch(`${connectionUrl}/json/report`);
1616
await Promise.resolve();
1717
return new TransportHTTP(connectionUrl);
1818
}

0 commit comments

Comments
 (0)