From 8ab4bab3ddfc1986cdffffd1466fddcc95b89b0e Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sat, 11 May 2024 13:05:07 +0200 Subject: [PATCH] send ping from heard stations --- .../grid/grid_active_heard_stations.vue | 31 +++++++++++++++++++ .../src/components/main_footer_navbar.vue | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/freedata_gui/src/components/grid/grid_active_heard_stations.vue b/freedata_gui/src/components/grid/grid_active_heard_stations.vue index a812776e..d6673c99 100644 --- a/freedata_gui/src/components/grid/grid_active_heard_stations.vue +++ b/freedata_gui/src/components/grid/grid_active_heard_stations.vue @@ -16,6 +16,11 @@ const chat = useChatStore(pinia); import { getStationInfoByCallsign } from "./../../js/stationHandler"; +import { sendModemPing } from "../../js/api.js"; + + + + function getDateTime(timestampRaw) { var datetime = new Date(timestampRaw * 1000).toLocaleString( navigator.language, @@ -71,6 +76,13 @@ function startNewChat(callsign) { chat.newChatCallsign = callsign; chat.newChatMessage = "Hi there! Nice to meet you!"; } + +function transmitPing(callsign) { + sendModemPing(callsign.toUpperCase()); +} + + +