test client: log objects received via the "power changed" notification
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
8ead49504b
commit
675fe750f6
|
@ -732,7 +732,8 @@ function handle_klippy_ready() {
|
||||||
json_rpc.register_method("notify_klippy_ready", handle_klippy_ready);
|
json_rpc.register_method("notify_klippy_ready", handle_klippy_ready);
|
||||||
|
|
||||||
function handle_power_changed(power_status) {
|
function handle_power_changed(power_status) {
|
||||||
console.log(`Power Changed: ${power_status}`);
|
console.log(`Power Changed:`);
|
||||||
|
console.log(power_status)
|
||||||
}
|
}
|
||||||
json_rpc.register_method("notify_power_changed", handle_power_changed);
|
json_rpc.register_method("notify_power_changed", handle_power_changed);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue