Documentation ¶
Index ¶
- func GetEndpointsFromDeviceResource(ctx context.Context, coapConn ClientConn) ([]string, error)
- func GetEndpointsFromResourceType(ctx context.Context, coapConn ClientConn, resourceType string) ([]string, error)
- func GetResourceLinks(ctx context.Context, coapConn ClientConn, href string, opts ...message.Option) (schema.ResourceLinks, uint64, error)
- func GetResourceLinksWithLinkInterface(ctx context.Context, coapConn ClientConn, href string) (schema.ResourceLinks, uint64, error)
- type ClientConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpointsFromDeviceResource ¶
func GetEndpointsFromDeviceResource(ctx context.Context, coapConn ClientConn) ([]string, error)
GetEndpointsFromDeviceResource retrieves the endpoints from the device resource.
func GetEndpointsFromResourceType ¶
func GetEndpointsFromResourceType(ctx context.Context, coapConn ClientConn, resourceType string) ([]string, error)
GetEndpointsFromResourceType retrieves the endpoints associated with a specific resource type.
func GetResourceLinks ¶
func GetResourceLinks(ctx context.Context, coapConn ClientConn, href string, opts ...message.Option) (schema.ResourceLinks, uint64, error)
GetResourceLinks queries the resource links from the given resource.
func GetResourceLinksWithLinkInterface ¶
func GetResourceLinksWithLinkInterface(ctx context.Context, coapConn ClientConn, href string) (schema.ResourceLinks, uint64, error)
GetResourceLinksWithLinkInterface query resource links from the given resource with the interface oic.if.ll.
Types ¶
Click to show internal directories.
Click to hide internal directories.