mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
revisions
This commit is contained in:
parent
cbcfa588c9
commit
1886614c3e
3 changed files with 4 additions and 6 deletions
|
|
@ -53,7 +53,7 @@ private Q_SLOTS:
|
|||
void deviceScanFinished();
|
||||
void deviceScanError(QBluetoothDeviceDiscoveryAgent::Error);
|
||||
|
||||
// QLowEnergyController realted
|
||||
// QLowEnergyController related
|
||||
void addLowEnergyService(const QBluetoothUuid&);
|
||||
void deviceConnected();
|
||||
void errorReceived(QLowEnergyController::Error);
|
||||
|
|
|
|||
|
|
@ -84,11 +84,9 @@
|
|||
(when *config-complete*
|
||||
(me:num *my-node-info*)))
|
||||
|
||||
(defun to-radio (&key from to id hop-limit want-ack priority decoded)
|
||||
(defun to-radio (&rest args &key from to id hop-limit want-ack priority decoded)
|
||||
(me:make-to-radio
|
||||
:packet (me:make-mesh-packet
|
||||
:from from :to to :id id :hop-limit hop-limit :want-ack want-ack
|
||||
:priority priority :decoded decoded)))
|
||||
:packet (apply 'me:make-mesh-packet args)))
|
||||
|
||||
(defun send-message (text)
|
||||
"Sends TEXT to radio and adds it to QML item model."
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ Rectangle {
|
|||
height: width
|
||||
playing: false
|
||||
source: "../img/semaphore.gif"
|
||||
currentFrame: model.ackState ? model.ackState.substr(2) : 0 // see 'qml:hex'
|
||||
currentFrame: model.ackState ? parseInt(model.ackState.substr(2), 16) : 0 // see 'qml:hex'
|
||||
visible: model.me
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue