Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 64fc06f

Browse files
committedSep 20, 2024·
added back "type" field
1 parent e3d6299 commit 64fc06f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
 

‎web/lora-package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lora-package",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "This is the Cumulocity LoRa plugin.",
55
"scripts": {
66
"start": "c8ycli server --env.extraWebpackConfig=./extra-webpack.config.js -u https://lora-dev.cumulocity.com --shell devicemanagement",

‎web/lora-package/src/onboarding/devices/devices.component.html

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ <h4 class="card-title">{{ "Register devices" | translate }}</h4>
6262
<i class="fa fw dlt-c8y-icon-help-outline text-primary"></i>
6363
</button>
6464
</th>
65+
<th>Type</th>
6566
<th>Codec</th>
6667
<th>Model</th>
6768
<ng-container *ngIf="properties">
@@ -132,6 +133,12 @@ <h4 class="card-title">{{ "Register devices" | translate }}</h4>
132133
</c8y-messages>
133134
</c8y-form-group>
134135
</td>
136+
<td>
137+
<c8y-form-group class="form-group-sm">
138+
<input class="form-control" #type="ngModel" name="type" [(ngModel)]="pdevice.type"
139+
aria-describedby="type" (paste)="onPaste($event, index)" />
140+
</c8y-form-group>
141+
</td>
135142
<td>
136143
<c8y-form-group class="form-group-sm" [hasError]="codec.invalid && (codec.dirty || codec.touched)">
137144
<select class="form-control" #codec="ngModel" name="codec" [(ngModel)]="pdevice.codec"

‎web/lora-package/src/onboarding/devices/devices.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ export class LoraDevicesComponent {
510510
devEUI: "",
511511
appEUI: "",
512512
appKey: "",
513+
type: "",
513514
codec: "",
514515
model: "",
515516
},
@@ -521,6 +522,7 @@ export class LoraDevicesComponent {
521522
devEUI: "",
522523
appEUI: "",
523524
appKey: "",
525+
type: "",
524526
codec: "",
525527
model: "",
526528
});
@@ -595,7 +597,7 @@ export class LoraDevicesComponent {
595597
pdevice.devEUI,
596598
pdevice.appEUI,
597599
pdevice.appKey,
598-
"",
600+
pdevice.type,
599601
pdevice.codec,
600602
pdevice.model,
601603
this.provisionDevice.instanceSelect,

0 commit comments

Comments
 (0)
Please sign in to comment.