-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support migration from the Firefly LNS #97
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a595f8e
dev: Add `firefly` source
happyRip edef8e7
dev: Implement a barebones `source.Source` interface
happyRip c82d280
dev: Add basic config
happyRip 0a1f175
dev: Improve config
happyRip 26f2109
dev: Create `devices` package
happyRip 326f404
dev: Add `api` package
happyRip cbed7ee
dev: Extend `source` functionalities
happyRip 93ffebf
dev: Improve `devices` package
happyRip cc72f7c
dev: Improve `api` package
happyRip 6db8516
dev: Work on `firefly` package
happyRip d4e690f
dev: Move to `zap` logger
happyRip 8b1f3c7
dev: Add `Location` object to `devices` package
happyRip 2fab5a2
dev: Small updates
happyRip dd978f8
doc: Add documentation for `firefly` source
happyRip 763c7da
cli: Fix firefly source
KrishnaIyer 7498fa0
all: Complete firefly functionality
KrishnaIyer 938f8cd
all: Make firefly device bytes optional
KrishnaIyer 8d3ecd8
all: Fix fetching packets
KrishnaIyer 92c815f
all: Update session key ID
KrishnaIyer 61a08e8
all: Improve code reuse
KrishnaIyer 6683a5f
all: Add option to invalidate keys
KrishnaIyer a4a3ad8
doc: Update readme
KrishnaIyer 99603f6
dev: Add changelog
KrishnaIyer 46f8fb7
dev: Define iterator per source
KrishnaIyer bec38d9
all: Harmonize logger usage
KrishnaIyer 0070c4c
all: Propagate context to sub commands
KrishnaIyer 609f8de
all: Fix device ID export
KrishnaIyer dabeba5
dev: Create MAC state for Firefly devices
KrishnaIyer 9720ffa
all: Init flags without exposing values
KrishnaIyer 1e5e089
all: Make iterator use stdin for devices
KrishnaIyer 1b8e814
dev: Update readme
KrishnaIyer 012bb90
dev: Update test package name
KrishnaIyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright © 2023 The Things Network Foundation, The Things Industries B.V. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package firefly | ||
|
||
import ( | ||
"go.thethings.network/lorawan-stack-migrate/pkg/commands" | ||
_ "go.thethings.network/lorawan-stack-migrate/pkg/source/firefly" | ||
) | ||
|
||
const sourceName = "firefly" | ||
|
||
// FireflyCmd represents the firefly source. | ||
var FireflyCmd = commands.Source(sourceName, | ||
"Export devices from Digimondo's Firefly", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The context was previously never propagated to the subcommands and hence this logger and the exportconfig were never used.
I've fixed the export config but we don't need this logger since we use Zap in the source.