This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure callbacks and device pass through
- Loading branch information
1 parent
c088655
commit 7ee1a93
Showing
22 changed files
with
196 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
dashboard/src/main/java/blue/happening/dashboard/model/DashboardModel.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
mesh/src/main/java/blue/happening/mesh/IMeshHandlerCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package blue.happening.mesh; | ||
|
||
public interface IMeshHandlerCallback { | ||
|
||
void onMessageReceived(byte[] message); | ||
public interface IMeshHandlerCallback { | ||
|
||
void onDeviceAdded(MeshDevice meshDevice); | ||
|
||
void onDeviceUpdated(MeshDevice meshDevice); | ||
|
||
void onDeviceRemoved(MeshDevice meshDevice); | ||
|
||
void onMessageReceived(byte[] message, MeshDevice source); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package blue.happening.mesh; | ||
|
||
|
||
public interface IRemoteDevice extends Comparable<IRemoteDevice> { | ||
|
||
public String getUuid(); | ||
|
||
public boolean isNeighbour(); | ||
|
||
public float getTq(); | ||
|
||
public float getEq(); | ||
|
||
public float getRq(); | ||
|
||
public boolean sendMessage(Message message); | ||
|
||
public boolean remove(); | ||
|
||
public boolean equals(Object object); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.