Main Site Documentation

Minor Error in Bluetooth driver (Version 4.2)


My comment is about Version 4.2 of the bluetooth driver I found.

Not sure how to directly send directly to Brett (who I see in this form)

// Driver contributed by TinyCLR communitity members Eduardo Velloso (@ eduardo.velloso) and Brett Pound (@ Brett).
namespace Gadgeteer.Modules.GHIElectronics

The error is minor but Commands can be ‘fussy’, so I thought I would mention what I found.

        /// <summary>
        /// Sets the PIN code for the Bluetooth module
        /// </summary>
        /// <param name="pinCode"></param>
        public void SetPinCode(string pinCode)
            //this.serialPort.Write("\r\n +STPIN=" + pinCode + "\r\n");  <<< Is this line in error?  (There is a space between "\r\n +STPIN=")

            this.serialPort.Write("\r\n+STPIN=" + pinCode + "\r\n");  <<<Space removed


good find. I think it was that way from the start… For your info what I added was around the baud rate for comms from Fez to BT module - that will be a limiting factor if you’re trying to push a lot of data between your Fez and the connected device.

Gus, can you rev it?