EdgexAgent/device-gps-go/run/cmd/device-gps/main.go

25 lines
548 B
Go
Raw Normal View History

2025-07-10 20:30:06 +08:00
// -*- Mode: Go; indent-tabs-mode: t -*-
//
// Copyright (C) 2017-2018 Canonical Ltd
// Copyright (C) 2018-2019 IOTech Ltd
//
// SPDX-License-Identifier: Apache-2.0
// This package provides a simple example of a device service.
package main
import (
"github.com/edgexfoundry/device-sdk-go/v4"
"github.com/edgexfoundry/device-sdk-go/v4/pkg/startup"
"github.com/edgexfoundry/device-sdk-go/v4/run/driver"
)
const (
serviceName string = "device-gps"
)
func main() {
sd := driver.Driver{}
startup.Bootstrap(serviceName, device.Version, &sd)
}