Skip to content

Commit

Permalink
Make baudrate configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjorgo committed Dec 14, 2024
1 parent c798e6f commit b9c1a4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ namespace HeboTech.ATLib.TestConsole
{
public class GetStartedExample
{
public static async Task RunAsync(string portName, string pin, string recepientPhoneNumber)
public static async Task RunAsync(string portName, int baudRate, string pin, string recepientPhoneNumber)
{
// Set up serial port
using SerialPort serialPort = new SerialPort(portName, 9600, Parity.None, 8, StopBits.One)
using SerialPort serialPort = new SerialPort(portName, baudRate, Parity.None, 8, StopBits.One)
{
Handshake = Handshake.RequestToSend
};
Expand Down
4 changes: 2 additions & 2 deletions src/HeboTech.ATLib.TestConsole/GetStartedExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ namespace HeboTech.ATLib.TestConsole
{
public class GetStartedExample
{
public static async Task RunAsync(string portName, string pin, string recepientPhoneNumber)
public static async Task RunAsync(string portName, int baudRate, string pin, string recepientPhoneNumber)
{
// Set up serial port
using SerialPort serialPort = new SerialPort(portName, 9600, Parity.None, 8, StopBits.One)
using SerialPort serialPort = new SerialPort(portName, baudRate, Parity.None, 8, StopBits.One)
{
Handshake = Handshake.RequestToSend
};
Expand Down

0 comments on commit b9c1a4b

Please sign in to comment.