Skip to content

Commit

Permalink
fix devices path
Browse files Browse the repository at this point in the history
  • Loading branch information
y-du committed Jul 3, 2024
1 parent c1940db commit bb868c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mgw-module/Modfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Device Cloud-Connector
description: Connect local devices to the Cloud.
license: Apache-2.0 license
author: InfAI (CC SES)
version: v0.2.0
version: v0.2.2
type: add-on
deploymentType: single
dependencies:
Expand All @@ -27,7 +27,7 @@ dependencies:
services:
connector:
name: Connector
image: ghcr.io/senergy-platform/mgw-device-cloud-connector:0.2.0
image: ghcr.io/senergy-platform/mgw-device-cloud-connector:0.2.2
volumes:
ch-data:
- mountPoint: /opt/connector/ch-data
Expand Down
2 changes: 1 addition & 1 deletion util/cloud_client/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
)

func (c *Client) CreateDevice(ctx context.Context, device models.Device) (string, error) {
u, err := url.JoinPath(c.baseUrl, devicesPath)
u, err := url.JoinPath(c.baseUrl, localDevicesPath)
if err != nil {
return "", err
}
Expand Down

0 comments on commit bb868c1

Please sign in to comment.