Skip to content

Commit 1393154

Browse files
authored
DOCS-3466: Remove stream from hello world module guide (#3935)
1 parent 6c59f56 commit 1393154

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docs/operate/get-started/other-hardware/hello-world-module.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ First, implement the camera API methods by editing the camera class definition:
577577
1. Delete the `SubscribeRTP` and `Unsubscribe` methods, since they are not applicable to this camera.
578578
579579
1. You can leave the rest of the functions not implemented, because this module is not meant to return a point cloud (`NextPointCloud`), and does not need to return multiple images simultaneously (`Images`).
580-
If this camera returned a camera stream instead of a single static file, we would have implemented `Stream` instead of `Read`.
581580
582581
However, you do need to edit the return statements to return empty structs that match the API.
583582
Edit these methods so they look like this:
@@ -587,10 +586,6 @@ First, implement the camera API methods by editing the camera class definition:
587586
return nil, errors.New("not implemented")
588587
}
589588
590-
func (s *helloWorldHelloCamera) Stream(ctx context.Context, errHandlers ...gostream.ErrorHandler) (gostream.VideoStream, error) {
591-
return nil, errors.New("not implemented")
592-
}
593-
594589
func (s *helloWorldHelloCamera) Images(ctx context.Context) ([]camera.NamedImage, resource.ResponseMetadata, error) {
595590
return []camera.NamedImage{}, resource.ResponseMetadata{}, errors.New("not implemented")
596591
}

0 commit comments

Comments
 (0)