Skip to content

Commit

Permalink
make and undo small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 committed Sep 20, 2023
1 parent 855371d commit 7aca4b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/connect-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ This example demonstrates how to connect to the Viam app and make calls to it.

Run `npm run dev` and visit `localhost:5137` in a browser. Press the button to execute the logic defined in `src/main.ts`.

Edit `src/main.ts` to change the robot logic being run. Edit `index.html` to change the layout of the app.
Edit `src/main.ts` to change the logic being run. Edit `index.html` to change the layout of the app.
4 changes: 2 additions & 2 deletions examples/connect-app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import * as VIAM from '@viamrobotics/sdk';
async function connect(): Promise<VIAM.ViamClient> {
// You can remove this block entirely if your robot is not authenticated.
// Otherwise, replace with an actual secret.
const secret = '<API-KEY>';
// const secret = '<SECRET>';
const credential = {
payload: secret,
type: 'api-key',
type: 'robot-location-secret',
};

// Replace with the host of your actual robot running Viam.
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export {
createRobotClient,
} from './robot';

/**
* @deprecated Use {@link RobotClient} instead.
* @group Clients
*/
export { RobotClient as Client } from './robot';

export { ViamClient } from './app/viam-client';
Expand Down
5 changes: 2 additions & 3 deletions src/robot/dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,10 @@ export const createRobotClient = async (
};

/**
* Get a Viam Transport Factory by getting the accessToken.
* Get a Viam Transport Factory after getting the accessToken.
*
* In dialOpts.credentials, the credential type cannot be a robot secret. The
* credential type can be a robot location secret or, preferably, the org API
* key.
* credential type can be a robot location secret.
*/
export const createViamTransportFactory = async (
serviceHost: string,
Expand Down

0 comments on commit 7aca4b1

Please sign in to comment.