xamarin / Monkey.BluetoothLE

BluetoothLE abstraction for use with Xamarin projects, including Xamarin.Forms.
Apache License 2.0
348 stars 223 forks source link

How to confirm TestBLEMini? #27

Open henslecd opened 9 years ago

henslecd commented 9 years ago

Hello,

I would like to run the TestBLEMini but am not sure how to test it as written.

If I use COM1, I connect the Tx and Rx of the mini to D0 and D1 of the netduino.

What do the referenced analog pins connect to? What is the expectation of this test?

        var a0 = new AnalogInput (AnalogChannels.ANALOG_PIN_A0, -1);
        var a1 = new AnalogInput (AnalogChannels.ANALOG_PIN_A1, -1);

        var uptimeVar = server.RegisterVariable ("Uptime (s)", 0);

        server.RegisterVariable ("Speed", 0, v => { });
        server.RegisterVariable ("Turn", 0, v => { });

        var a0Var = server.RegisterVariable ("Analog 0", 0);
        var a1Var = server.RegisterVariable ("Analog 1", 0);

        var magicCmd = server.RegisterCommand ("Magic", () => {
            Debug.Print ("MAAAGIIICC");
            return 42;
        });