https://github.com/ebadier/metawearrpcserver
An RPC Server to control MetaWear boards.
https://github.com/ebadier/metawearrpcserver
bluetooth-le csharp metawear metawear-sdk rpc-server unity3d
Last synced: 6 months ago
JSON representation
An RPC Server to control MetaWear boards.
- Host: GitHub
- URL: https://github.com/ebadier/metawearrpcserver
- Owner: ebadier
- License: mit
- Created: 2018-12-14T13:36:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T15:49:02.000Z (over 4 years ago)
- Last Synced: 2025-03-28T09:36:22.634Z (7 months ago)
- Topics: bluetooth-le, csharp, metawear, metawear-sdk, rpc-server, unity3d
- Language: C#
- Homepage:
- Size: 4.27 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MetaWear RPC Server C#
Regarding the difficulties to integrate the official [MetaWear-SDK-CSharp](https://github.com/mbientlab/MetaWear-SDK-CSharp) into Unity3D,
this Windows solution provides the ability to send commands to [MetaWear boards](https://mbientlab.com/metamotionr/) to non-supported C# platforms (e.g Unity3D) via RPC.# Projects
## MetaWearRPC_Server.Net4.6
This application connects to some MetaWear boards (specified in the file mwBoards.cfg).
It ensures the MetaWear boards stay always connected via Bluetooth LE.
RPC Clients can connect to this server to send commands (see IMetaWearContract.cs) via RPC to the MetaWear boards.
All the features of the MetaWear boards can be easily added by declaring new methods in the IMetaWearContract interface and the corresponding implementations in the MetaWearContract class.### How to use the RPC Server:
* Fill the file mwBoards.cfg with your MetaWear boards MAC adresses.
* Add the command line argument "..\\..\\..\\mwBoards.cfg" in the Debug section of the project properties.
### WinRT References
* Windows : C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17134.0\Windows.winmd
### Dependencies (automatically installed using NuGet packages)
* [TheNetTunnel](https://github.com/tmteam/TheNetTunnel)
* [MetaWear-SDK-CSharp](https://github.com/mbientlab/MetaWear-SDK-CSharp)
* [MetaWear-SDK-CSharp-Plugin-Win10](https://github.com/mbientlab/MetaWear-SDK-CSharp-Plugin-Win10)## MetaWearRPC.Net4.6
Use this library to create RPC Clients to send commands to the MetaWear's RPC Server.
The dlls can be used in Unity3D : an example is [MetaWearUnityRPC](https://github.com/ebadier/MetaWearUnityRPC)
### Configure Unity3D to use the dlls:
* Go to Edit > ProjectSettings > Player:
* Scripting Runtime Version : Experimental(.Net 4.6 Equivalent)
* Scripting Backend : Mono
* Api Compatibility Level : .Net 4.6
* Copy MetaWearRPC.Net4.6.dll, protobuf-net.dll, TNT.dll in Assets folder.
### Dependencies (automatically installed using NuGet packages)
* [TheNetTunnel](https://github.com/tmteam/TheNetTunnel)