삭제삭제!!!이동이동!!!!@
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
using NUnit.Framework;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Studio
|
||||
{
|
||||
public class ConnectedEntity
|
||||
{
|
||||
[JsonProperty("APIs")]
|
||||
public List<APIEntity> apiS { get; set; }
|
||||
[JsonProperty("MQTTs")]
|
||||
public List<MQTTEntity> mqtts { get; set; }
|
||||
}
|
||||
|
||||
public class APIEntity
|
||||
{
|
||||
[JsonProperty("APIDomain")]
|
||||
public string APIDomain { get; set; }
|
||||
[JsonProperty("Port")]
|
||||
public int APIPort { get; set; }
|
||||
[JsonProperty("URL")]
|
||||
public List<string> url { get; set; }
|
||||
}
|
||||
public class MQTTEntity
|
||||
{
|
||||
[JsonProperty("MQTTDomain")]
|
||||
public string MQTTDomain { get; set; }
|
||||
[JsonProperty("Port")]
|
||||
public int MQTTPort { get; set; }
|
||||
[JsonProperty("Topics")]
|
||||
public List<string> topics { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fbcc575483b274d4382f6a2b8d380d11
|
||||
@@ -63,10 +63,6 @@ namespace Studio.UI
|
||||
public Action<string> onRetouchAlarm;
|
||||
public Action<string> onDeleteAlarm;
|
||||
|
||||
|
||||
private SaveConnectedData connectedData;
|
||||
private SaveConnectAlarmData connectedAlarmData;
|
||||
|
||||
private CustomAssetRenderObject singleSelectObject;
|
||||
private AddComponetDataScriptable componetScriptable;
|
||||
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
using Studio;
|
||||
using Studio.Auth;
|
||||
using Studio.Conifg;
|
||||
using Studio.Dynamic.M;
|
||||
using Studio.Staic.STKC;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Studio
|
||||
{
|
||||
public class RJHTest : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
private int aa;
|
||||
public StackerCrane testcrane;
|
||||
void Awake()
|
||||
{
|
||||
//ConfigConnected.MQTTDomain = "220.90.135.190";
|
||||
//ConfigConnected.APIDomain = "220.90.135.190";
|
||||
//ConfigConnected.APIPort = 23000;
|
||||
//ConfigConnected.MQTTPort = 8088;
|
||||
}
|
||||
|
||||
public void TestConeect()
|
||||
{
|
||||
var mqttsettings = ConfigConnected.MQTTSettings;
|
||||
|
||||
foreach(var mqtt in mqttsettings.mqttConnections)
|
||||
{
|
||||
StudioService.instance.ConnectMQTT(mqtt.domain,mqtt.port,mqtt.topics);
|
||||
}
|
||||
//testcrane.Init("STOCKER_CRANE");
|
||||
//AGVManager.instance.Init("AGV");
|
||||
}
|
||||
private async void Test()
|
||||
{
|
||||
await AuthService.Instance.Login("xr", "@dbqlTl1");
|
||||
|
||||
await StudioService.instance.LoadBaseData("/api/agv");
|
||||
Debug.Log(AuthService.Instance.Entiti.accessToken);
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
if(Input.GetKeyDown(KeyCode.V))
|
||||
{
|
||||
Test();
|
||||
}
|
||||
if (Input.GetKeyDown(KeyCode.I))
|
||||
{
|
||||
// StudioService.instance.SubscribeMQTT("STOCKER_CRANE");
|
||||
|
||||
}
|
||||
if(Input.GetKeyDown(KeyCode.U))
|
||||
{
|
||||
// StudioService.instance.SubscribeMQTT("AGV");
|
||||
}
|
||||
if(Input.GetKeyDown(KeyCode.T))
|
||||
{
|
||||
|
||||
TestTask();
|
||||
}
|
||||
}
|
||||
|
||||
private async Task TestTask()
|
||||
{
|
||||
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
|
||||
sw.Start();
|
||||
var task = Task.Run(async () =>
|
||||
{
|
||||
var i = aa++;
|
||||
await Task.Delay(3000);
|
||||
sw.Stop();
|
||||
Debug.Log(sw.ElapsedMilliseconds);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86d8ea1a81790154fa1c1c2be6398b6a
|
||||
Reference in New Issue
Block a user