Skip to content

Commit

Permalink
Notification: Added Rig Notification Sample Message
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Dec 15, 2024
1 parent 1f7c90c commit 84b1428
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions core/NetworkNotification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,42 @@ ToAllSpotNotificationMsg::ToAllSpotNotificationMsg(const ToAllSpot &spot, QObjec
msg["data"] = spotData;
}

/* Rig Status Message
* Example
*
{
"appid":"QLog",
"msgtype":"rigstatus",
"time":1647197319251,
"data":{
"profile" : "IC7300",
"connected" : true,
"txvfo" : "CURR",
"rxvfo" : "CURR", -- TX/RX VFOs have the same value - split is not supported
"txpower" : 0.01 <in W>
"keyspeed" : 23
"vfostates" :
[
{
"vfo" : "CURR",
"freq" : "7.18800" <in MHz always 5 dec. places>
"mode" : "FM",
"rawmode" : "FM", <raw mode from Rig>
"ptt" : false,
"rit" : 0.1 <in MHz>
"xit" : 0.0 <in MHz>
"bandwidth" : 2400 <in Hz>
},
{
.... -- currently, the second VFO is not present
}
]
},
"logid":"{2046e323-b340-4634-8d52-4e70a4231978}"
}
* Empty/Zero fields are not sent. Sent is everything that is known at the given moment of event.
* More info https://github.com/foldynl/QLog/wiki/Notifications
*/
RigStatusNotificationMsg::RigStatusNotificationMsg(const Rig::Status &status, QObject *parent) :
GenericNotificationMsg(parent)
{
Expand Down

0 comments on commit 84b1428

Please sign in to comment.