This driver is designed to help using a GT-38 Wireless Communication Module with a Raspberry PI (zero or 3) and its GPIO.
GT-38 Pin -> RASPBERRY GPIO Pin
VCC -> 3.3V
GND -> GROUND
RX -> TX (pin 9)
TX -> RX (pin 10)
SET -> a pin to be chosen
Import the class
example 'from GT_38_driver.GT38 import GT38'
Call the class like GT38 (SetPin)
example
'comModule = GT38(6)'
speed : integer in bauds
mode : integer between 1 and 4
power : string
channel: integer between 1 ans 120
getParams() will set class internal parameters corresponding to the module speed, power, mode, channel
setSpeed(speed) speed : int ??? could be 1200, 2400, 4800, 9600
internal Parameter Speed is set
returns True : Mode is Changed False : Mode is not Changed
setMode(mode) mode : int ??? could be 1, 2, 3, 4
internal Parameter Mode is set
returns True : Mode is Changed False : Mode is not Changed
setChannel(channel) channel : int ??? between 1 and 120
internal Parameter Channel is set
returns True : Channel is Changed False : Channel is not Changed
send(message) message : string The method will add the special character '\n'
returns True : Message is sent False : Message is not sent