mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 01:31:19 +00:00
Update repo
This commit is contained in:
parent
6df479223a
commit
9d2bc15180
207793
3D Printing/CE3PRO_labyrinthGiftBox_lid.gcode
Normal file
207793
3D Printing/CE3PRO_labyrinthGiftBox_lid.gcode
Normal file
File diff suppressed because it is too large
Load Diff
BIN
3D Printing/led_bureau_box.stl
Normal file
BIN
3D Printing/led_bureau_box.stl
Normal file
Binary file not shown.
BIN
3D Printing/led_bureau_box_top.stl
Normal file
BIN
3D Printing/led_bureau_box_top.stl
Normal file
Binary file not shown.
@ -74,7 +74,7 @@ namespace MyCore.Service.Controllers
|
|||||||
if (user == null)
|
if (user == null)
|
||||||
throw new KeyNotFoundException("User not found");
|
throw new KeyNotFoundException("User not found");
|
||||||
|
|
||||||
System.Console.WriteLine($"Init userId for MqqClientService ! {user.Email}");
|
System.Console.WriteLine($"Init userId for MqttClientService ! {user.Email}");
|
||||||
MqttClientService.SetServices(_DeviceDatabaseService, _GroupDatabaseService, _ProviderDatabaseService, _LocationDatabaseService, _ActionService, _AutomationDatabaseService, user.Id);
|
MqttClientService.SetServices(_DeviceDatabaseService, _GroupDatabaseService, _ProviderDatabaseService, _LocationDatabaseService, _ActionService, _AutomationDatabaseService, user.Id);
|
||||||
|
|
||||||
return new OkObjectResult(token);
|
return new OkObjectResult(token);
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
namespace Mqtt.Client.AspNetCore.Services
|
namespace Mqtt.Client.AspNetCore.Services
|
||||||
{
|
{
|
||||||
public class ExtarnalService
|
public class ExternalService
|
||||||
{
|
{
|
||||||
private readonly IMqttClientService mqttClientService;
|
private readonly IMqttClientService mqttClientService;
|
||||||
public ExtarnalService(MqttClientServiceProvider provider)
|
public ExternalService(MqttClientServiceProvider provider)
|
||||||
{
|
{
|
||||||
mqttClientService = provider.MqttClientService;
|
mqttClientService = provider.MqttClientService;
|
||||||
}
|
}
|
||||||
@ -193,7 +193,7 @@ namespace Mqtt.Client.AspNetCore.Services
|
|||||||
.WithTopic(topic)
|
.WithTopic(topic)
|
||||||
.WithPayload(message)
|
.WithPayload(message)
|
||||||
.WithExactlyOnceQoS()
|
.WithExactlyOnceQoS()
|
||||||
.WithRetainFlag()
|
.WithRetainFlag(false)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
if (mqttClient.IsConnected)
|
if (mqttClient.IsConnected)
|
||||||
|
|||||||
@ -16,7 +16,7 @@ namespace MyCore.Service
|
|||||||
private class Permissions
|
private class Permissions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dpos admin access
|
/// Admin access
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string Admin = "MyCore.admin";
|
public const string Admin = "MyCore.admin";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -211,7 +211,7 @@ namespace MyCore.Services.Devices
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
System.Console.WriteLine($"Current device Trigger not found - {deviceTrigger}");
|
System.Console.WriteLine($"Current device Trigger not found - {deviceServiceName}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"BookstoreDb": "mongodb://admin:MioTech4ever!@localhost:27017",
|
"BookstoreDb": "mongodb://admin:MioTech4ever!@localhost:27017",
|
||||||
|
//"MyCoreDb": "mongodb://admin:MioTech4ever!@192.168.31.140:27017", // DEV
|
||||||
"MyCoreDb": "mongodb://admin:MioTech4ever!@localhost:27017"
|
"MyCoreDb": "mongodb://admin:MioTech4ever!@localhost:27017"
|
||||||
},
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
@ -26,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"BrokerHostSettings": {
|
"BrokerHostSettings": {
|
||||||
"Host": "192.168.31.140",
|
"Host": "localhost",
|
||||||
"Port": 1883
|
"Port": 1883
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
BIN
error_mongodb.jpg
Normal file
BIN
error_mongodb.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 171 KiB |
Loading…
x
Reference in New Issue
Block a user