Skip to content

Commit

Permalink
Move modems back into main project
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjorgo committed Dec 16, 2024
1 parent a866c85 commit 482bfe3
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 59 deletions.
28 changes: 0 additions & 28 deletions src/HeboTech.ATLib.Modems.Tests/HeboTech.ATLib.Modems.Tests.csproj

This file was deleted.

12 changes: 0 additions & 12 deletions src/HeboTech.ATLib.Modems/HeboTech.ATLib.Modems.csproj

This file was deleted.

13 changes: 7 additions & 6 deletions src/HeboTech.ATLib.TestConsole/FunctionalityTest.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
using HeboTech.ATLib.Events;
using HeboTech.ATLib.Messaging;
using HeboTech.ATLib.Modems.D_LINK;
using HeboTech.ATLib.Misc;
using HeboTech.ATLib.Modems;
using HeboTech.ATLib.Modems.Adafruit;
using HeboTech.ATLib.Modems.Cinterion;
using HeboTech.ATLib.Numbering;
using HeboTech.ATLib.Parsing;
using HeboTech.ATLib.Storage;
using HeboTech.ATLib.Misc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using HeboTech.ATLib.Modems.Cinterion;

namespace HeboTech.ATLib.TestConsole
{
Expand Down Expand Up @@ -39,8 +40,7 @@ public static async Task RunAsync(System.IO.Stream stream, string pin)
{
using AtChannel atChannel = AtChannel.Create(stream);
atChannel.EnableDebug(Log);
//using IMC55i modem = new MC55i(atChannel);
using IDWM222 modem = new DWM222(atChannel);
using IModem modem = new MC55i(atChannel);
atChannel.Open();
await atChannel.ClearAsync();

Expand Down Expand Up @@ -129,7 +129,8 @@ public static async Task RunAsync(System.IO.Stream stream, string pin)
Console.WriteLine($"Supported storages:{Environment.NewLine}{supportedStorages}");
var currentStorages = await modem.GetPreferredMessageStoragesAsync();
Console.WriteLine($"Current storages:{Environment.NewLine}{currentStorages}");
var setPreferredStorages = await modem.SetPreferredMessageStorageAsync(MessageStorage.MT, MessageStorage.MT, MessageStorage.MT);
//var setPreferredStorages = await modem.SetPreferredMessageStorageAsync(MessageStorage.MT, MessageStorage.MT, MessageStorage.MT);
var setPreferredStorages = await modem.SetPreferredMessageStorageAsync(MessageStorage.ME, MessageStorage.ME, MessageStorage.ME);
Console.WriteLine($"Storages set:{Environment.NewLine}{setPreferredStorages}");

Log("Initialization done");
Expand Down
1 change: 1 addition & 0 deletions src/HeboTech.ATLib.TestConsole/GetStartedExample.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using HeboTech.ATLib.Messaging;
using HeboTech.ATLib.Misc;
using HeboTech.ATLib.Modems;
using HeboTech.ATLib.Modems.Adafruit;
using HeboTech.ATLib.Numbering;
using HeboTech.ATLib.Parsing;
Expand Down
1 change: 1 addition & 0 deletions src/HeboTech.ATLib.TestConsole/StressTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using HeboTech.ATLib.Modems;

namespace HeboTech.ATLib.TestConsole
{
Expand Down
12 changes: 0 additions & 12 deletions src/HeboTech.ATLib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HeboTech.ATLib.TestConsole"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HeboTech.ATLib.Tests", "HeboTech.ATLib.Tests\HeboTech.ATLib.Tests.csproj", "{97A95146-06D3-436E-AE16-8F0A6D86B26D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeboTech.ATLib.Modems", "HeboTech.ATLib.Modems\HeboTech.ATLib.Modems.csproj", "{077CEEEB-C9D1-4719-85FC-A46DC591E755}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeboTech.ATLib.Modems.Tests", "HeboTech.ATLib.Modems.Tests\HeboTech.ATLib.Modems.Tests.csproj", "{F2DE5265-0B3F-418B-8725-35B0A880F23A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -31,14 +27,6 @@ Global
{97A95146-06D3-436E-AE16-8F0A6D86B26D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97A95146-06D3-436E-AE16-8F0A6D86B26D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97A95146-06D3-436E-AE16-8F0A6D86B26D}.Release|Any CPU.Build.0 = Release|Any CPU
{077CEEEB-C9D1-4719-85FC-A46DC591E755}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{077CEEEB-C9D1-4719-85FC-A46DC591E755}.Debug|Any CPU.Build.0 = Debug|Any CPU
{077CEEEB-C9D1-4719-85FC-A46DC591E755}.Release|Any CPU.ActiveCfg = Release|Any CPU
{077CEEEB-C9D1-4719-85FC-A46DC591E755}.Release|Any CPU.Build.0 = Release|Any CPU
{F2DE5265-0B3F-418B-8725-35B0A880F23A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F2DE5265-0B3F-418B-8725-35B0A880F23A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2DE5265-0B3F-418B-8725-35B0A880F23A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2DE5265-0B3F-418B-8725-35B0A880F23A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;

namespace HeboTech.ATLib
namespace HeboTech.ATLib.Modems
{
public interface IModem : IDisposable
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 482bfe3

Please sign in to comment.