make BmsTunnel buildable, it's still broken
This commit is contained in:
parent
4f8709d4d8
commit
426c447483
|
@ -2,7 +2,6 @@
|
|||
// rsync -av bin/Release/net6.0/linux-arm/publish/ root@10.2.1.6:/home/root/tunnel && clear && \
|
||||
// ssh root@10.2.1.6 /home/root/tunnel/BmsTunnel
|
||||
|
||||
using System.Net;
|
||||
using InnovEnergy.Lib.Utils;
|
||||
using static System.String;
|
||||
|
||||
|
@ -21,13 +20,21 @@ public static class Program
|
|||
|
||||
Console.WriteLine("\nstarting BMS tunnel\n");
|
||||
|
||||
var path = $"/dev/{tty}";
|
||||
if (host != null)
|
||||
path = $"root@{host}" + path;
|
||||
// var path = $"/dev/{tty}";
|
||||
// if (host != null)
|
||||
// path = $"root@{host}" + path;
|
||||
//
|
||||
// var node = connection.Nodes.Any()
|
||||
// ? connection.Nodes.First()
|
||||
// : DefaultNode;
|
||||
//
|
||||
|
||||
var node = connection.Nodes.Any()
|
||||
? connection.Nodes.First()
|
||||
: DefaultNode;
|
||||
// TODO: Fixme
|
||||
var path = "";
|
||||
Byte node = 2;
|
||||
var nodes = new Byte[] { 1, 2, 3 };
|
||||
|
||||
// TODO: Fixme
|
||||
|
||||
using var tunnel = new BmsTunnel(path, node);
|
||||
|
||||
|
@ -82,7 +89,7 @@ public static class Program
|
|||
|
||||
void ListNodes()
|
||||
{
|
||||
if(nodes.Count >= 250)
|
||||
if(nodes.Length >= 250)
|
||||
return;
|
||||
|
||||
nodes.Aggregate("available nodes:", (a, b) => $"{a} {b}")
|
||||
|
|
Loading…
Reference in New Issue