probe-web / @probe-web/client / index / MonitorEvent
Type Alias: MonitorEvent
ts
type MonitorEvent =
| {
kind: "rtt-discovered";
up: ChannelInfo[];
down: ChannelInfo[];
}
| {
kind: "text";
channel: number;
text: string;
}
| {
kind: "defmt";
channel: number;
lines: {
level: string | null;
message: string;
location: string | null;
}[];
malformed: boolean;
}
| {
kind: "bytes";
channel: number;
bytes: number[];
}
| {
kind: "semihosting";
stream: string;
data: string;
};Defined in: index.ts:255
Target output delivered by Session.monitor, Session.listTests and Session.runTest:
rtt-discovered: the RTT control block was found; lists its up and down channels.text: output from aStringRTT channel.defmt: decoded lines from aDefmtchannel (needs Session.setDefmtElf), each with its log level and source location when the firmware recorded them;malformedis set when some frames could not be decoded.bytes: raw data from aBinaryLEchannel.semihosting: console output the firmware wrote over semihosting (streamis e.g.stdout).