Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.
NervesHubLink opens a WebSocket connection to NervesHub when the device boots and keeps it open. NervesHub uses that connection to tell the device about firmware updates, run the remote console, and receive extension data. For how the device authenticates, see the pages under device authentication, starting with Shared secret.
Set the host
Set host to the host name devices connect to. This is the device endpoint, which is usually a different host from the web UI.
Any Erlang :ssl client option can go in ssl. TLS 1.3, session resumption, HTTP proxies and Msgpack are covered in Transport.
Devices configured with the web host
A NervesHub instance can redirect devices that connect to the web host to the device host. nerves_hub_link 2.10.0 and later follow the redirect. NervesHub also posts a product notification that names the device and the host it should use. The redirect is an instance setting. See Feature prerequisites.
Reconnection
NervesHubLink reconnects on its own when the connection drops. The delay starts at one second and doubles up to 60 seconds, with up to 50% added as jitter. To change it, or to control when the connection starts, see Connection lifecycle.
With connect: false, the application starts no connection processes.
Build the configuration at runtime
When credentials are not known at build time, implement the NervesHubLink.Configurator behaviour. build/1 receives the configuration read from the application environment and returns the configuration to use.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"NervesHub","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/nervescloud/5bz8_cB7diUKfY2L/images/logo-lockup-light-t.png?fit=max\u0026auto=format\u0026n=5bz8_cB7diUKfY2L\u0026q=85\u0026s=4fcfcec9804e3d1c56649d112bd05a07","dark":"https://mintcdn.com/nervescloud/5bz8_cB7diUKfY2L/images/logo-lockup-dark.png?fit=max\u0026auto=format\u0026n=5bz8_cB7diUKfY2L\u0026q=85\u0026s=77bf0bf18a9cd7e7d6297f9d4edadb90","href":"/"},"favicon":{"light":"https://mintcdn.com/nervescloud/LUktOqWBfC2J1-GL/images/favicon.svg?fit=max\u0026auto=format\u0026n=LUktOqWBfC2J1-GL\u0026q=85\u0026s=f5dc1749a812cc58283e4a849867d83e","dark":"https://mintcdn.com/nervescloud/LUktOqWBfC2J1-GL/images/favicon.svg?fit=max\u0026auto=format\u0026n=LUktOqWBfC2J1-GL\u0026q=85\u0026s=f5dc1749a812cc58283e4a849867d83e"},"navbar":{"links":[{"href":"https://nerves-hub.org","label":"NervesHub"},{"href":"https://nervescloud.com","label":"NervesCloud"},{"href":"https://discord.gg/Xb4pedSDy9","label":"Discord"}]},"footer":{"socials":{"github":"https://github.com/nerves-hub"}},"contextual":{"options":["copy","view","chatgpt","claude","download-pdf"],"display":"toc"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nervescloud","hasAudioNarration":false,"actualSubdomain":"nervescloud","customDomains":["docs.nerves-hub.org"],"gitSource":{"type":"github","owner":"nerves-hub","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b07dba1624292494269dc2a","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"HTTP API","count":100},{"language":"default","tag":"Endpoints","count":98},{"language":"default","tag":"Documentation","count":64},{"language":"default","tag":"Devices","count":14},{"language":"default","tag":"Devices (short URL)","count":11},{"language":"default","tag":"Firmware Updates","count":10},{"language":"default","tag":"Deployment Groups","count":9},{"language":"default","tag":"Extensions","count":8},{"language":"default","tag":"Device Management","count":8},{"language":"default","tag":"Webhooks","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".chat-assistant-floating-input{display:none!important}"}]}
{"page":{"pagePath":"setup/connecting","slug":"/setup/connecting","pageMetadata":{"title":"Connecting devices","sidebarTitle":"Connecting","description":"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.","href":"/setup/connecting"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`NervesHubLink opens a WebSocket connection to NervesHub when the device boots and keeps it open. NervesHub uses that connection to tell the device about firmware updates, run the `,_jsx(_components.a,{href:`/management/remote-console`,children:`remote console`}),`, and receive `,_jsx(_components.a,{href:`/extensions/overview`,children:`extension`}),` data. For how the device authenticates, see the pages under device authentication, starting with `,_jsx(_components.a,{href:`/auth/shared-secret`,children:`Shared secret`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`set-the-host`,children:`Set the host`}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`host`}),` to the host name devices connect to. This is the device endpoint, which is usually a different host from the web UI.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# config/target.exs`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"devices.nervescloud.com\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`host`}),` takes a host name, or a full URL when you need a port:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"wss://your.nerveshub.host:4001\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`host`}),` has no scheme, NervesHubLink uses `,_jsx(_components.code,{children:`wss://`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`If the TLS server name differs from the host you connect to, set `,_jsx(_components.code,{children:`sni`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"10.0.0.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` sni:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your.nerveshub.host\"`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`device_api_host`}),`, `,_jsx(_components.code,{children:`device_api_port`}),` and `,_jsx(_components.code,{children:`device_api_sni`}),` are deprecated. NervesHubLink logs a warning when you set them. Use `,_jsx(_components.code,{children:`host`}),` and `,_jsx(_components.code,{children:`sni`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`trust-the-server-certificate`,children:`Trust the server certificate`}),`\n`,_jsx(_components.p,{children:`NervesHubLink verifies the server certificate on every connection. It chooses the CA certificates to trust in this order:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cacerts`}),` in the `,_jsx(_components.code,{children:`ssl`}),` option.`]}),`\n`,_jsxs(_components.li,{children:[`The module set as `,_jsx(_components.code,{children:`ca_store`}),`. It must export `,_jsx(_components.code,{children:`ca_certs/0`}),` and return a list of DER-encoded certificates.`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.a,{href:`https://hex.pm/packages/castore`,children:`CAStore`}),` package, if it is in your project.`]}),`\n`,_jsx(_components.li,{children:`The CA certificates installed on the device.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`If your instance uses a certificate from a private CA, set the certificates yourself:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`ca_store:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyApp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`CAStore`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or pass DER-encoded certificates directly:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your.nerveshub.host\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` ssl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`cacerts:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` my_der_list]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Any Erlang `,_jsx(_components.code,{children:`:ssl`}),` client option can go in `,_jsx(_components.code,{children:`ssl`}),`. TLS 1.3, session resumption, HTTP proxies and Msgpack are covered in `,_jsx(_components.a,{href:`/connection/transport`,children:`Transport`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`devices-configured-with-the-web-host`,children:`Devices configured with the web host`}),`\n`,_jsxs(_components.p,{children:[`A NervesHub instance can redirect devices that connect to the web host to the device host. `,_jsx(_components.code,{children:`nerves_hub_link`}),` 2.10.0 and later follow the redirect. NervesHub also posts a `,_jsx(_components.a,{href:`/management/notifications`,children:`product notification`}),` that names the device and the host it should use. The redirect is an instance setting. See `,_jsx(_components.a,{href:`/hosting/feature-prerequisites#other-defaults`,children:`Feature prerequisites`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reconnection`,children:`Reconnection`}),`\n`,_jsxs(_components.p,{children:[`NervesHubLink reconnects on its own when the connection drops. The delay starts at one second and doubles up to 60 seconds, with up to 50% added as jitter. To change it, or to control when the connection starts, see `,_jsx(_components.a,{href:`/connection/lifecycle`,children:`Connection lifecycle`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`turn-the-connection-off`,children:`Turn the connection off`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# config/test.exs`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`connect:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`connect: false`}),`, the application starts no connection processes.`]}),`\n`,_jsx(Heading,{level:`2`,id:`build-the-configuration-at-runtime`,children:`Build the configuration at runtime`}),`\n`,_jsxs(_components.p,{children:[`When credentials are not known at build time, implement the `,_jsx(_components.code,{children:`NervesHubLink.Configurator`}),` behaviour. `,_jsx(_components.code,{children:`build/1`}),` receives the configuration read from the application environment and returns the configuration to use.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`defmodule`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` MyApp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Configurator`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` do`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` @behaviour`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NervesHubLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Configurator`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` @impl`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NervesHubLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Configurator`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(config) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ssl `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`certfile:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/root/ssl/cert.pem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`keyfile:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/root/ssl/key.pem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` %{config `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` ssl:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ssl}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` end`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`end`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`elixir`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`elixir`,children:_jsxs(_components.code,{language:`elixir`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`config `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`:nerves_hub_link`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`configurator:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyApp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Configurator`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Setting `,_jsx(_components.code,{children:`configurator`}),` replaces the built-in choice between `,_jsx(_components.a,{href:`/auth/nerveskey`,children:`NervesKey`}),`, `,_jsx(_components.a,{href:`/auth/tpm`,children:`TPM`}),` and shared secret. See `,_jsx(_components.a,{href:`/connection/lifecycle`,children:`Connection lifecycle`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-pages`,children:`Related pages`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/setup/add-to-project`,children:`Add NervesHubLink to a project`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/auth/shared-secret`,children:`Shared secret authentication`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/connection/transport`,children:`Connection transport`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/connection/lifecycle`,children:`Connection lifecycle`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Connecting devices","sidebarTitle":"Connecting","description":"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.","href":"/setup/connecting"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Set the host","slug":"set-the-host","depth":2,"children":[]},{"title":"Trust the server certificate","slug":"trust-the-server-certificate","depth":2,"children":[]},{"title":"Devices configured with the web host","slug":"devices-configured-with-the-web-host","depth":2,"children":[]},{"title":"Reconnection","slug":"reconnection","depth":2,"children":[]},{"title":"Turn the connection off","slug":"turn-the-connection-off","depth":2,"children":[]},{"title":"Build the configuration at runtime","slug":"build-the-configuration-at-runtime","depth":2,"children":[]},{"title":"Related pages","slug":"related-pages","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"nervescloud","siteName":"NervesHub","title":"Connecting devices - NervesHub","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T21:10:19.111Z","originalFileLocation":"setup/connecting.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NervesHub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connecting devices - NervesHub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NervesHub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nerves-hub.org/setup/connecting\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nervescloud.mintlify.site/_mintlify/api/og/v2?division=Setup\u0026amp;title=Connecting+devices\u0026amp;description=Point+nerves_hub_link+at+NervesCloud+or+your+own+NervesHub+instance%2C+and+set+the+CA+certificates+the+device+trusts.\u0026amp;theme=6ded47518f3851c1eac87023\u0026amp;signature=544a2291eda7c9e246e10dad4e7fa8ddae417ee5e5d38c71881e6fcb8889cddb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Connecting devices - NervesHub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nervescloud.mintlify.site/_mintlify/api/og/v2?division=Setup\u0026amp;title=Connecting+devices\u0026amp;description=Point+nerves_hub_link+at+NervesCloud+or+your+own+NervesHub+instance%2C+and+set+the+CA+certificates+the+device+trusts.\u0026amp;theme=6ded47518f3851c1eac87023\u0026amp;signature=544a2291eda7c9e246e10dad4e7fa8ddae417ee5e5d38c71881e6fcb8889cddb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NervesHub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nerves-hub.org/setup/connecting\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/setup/connecting.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nerves-hub.org/#organization\",\"name\":\"NervesHub\",\"url\":\"https://docs.nerves-hub.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nervescloud/5bz8_cB7diUKfY2L/images/logo-lockup-light-t.png?fit=max\u0026auto=format\u0026n=5bz8_cB7diUKfY2L\u0026q=85\u0026s=4fcfcec9804e3d1c56649d112bd05a07\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nerves-hub.org#website\",\"name\":\"NervesHub\",\"url\":\"https://docs.nerves-hub.org\",\"publisher\":{\"@id\":\"https://docs.nerves-hub.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nerves-hub.org/setup/connecting#webpage\",\"url\":\"https://docs.nerves-hub.org/setup/connecting\",\"name\":\"Connecting devices\",\"description\":\"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.\",\"dateModified\":\"2026-11-25T21:10:19.111Z\",\"isPartOf\":{\"@id\":\"https://docs.nerves-hub.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nerves-hub.org/setup/connecting#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nerves-hub.org/setup/connecting#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Setup\",\"item\":\"https://docs.nerves-hub.org/setup/add-to-project\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting devices\",\"item\":\"https://docs.nerves-hub.org/setup/connecting\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.nerves-hub.org/setup/connecting#article\",\"headline\":\"Connecting devices\",\"name\":\"Connecting devices\",\"description\":\"Point nerves_hub_link at NervesCloud or your own NervesHub instance, and set the CA certificates the device trusts.\",\"url\":\"https://docs.nerves-hub.org/setup/connecting\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nerves-hub.org/setup/connecting#webpage\"},\"dateModified\":\"2026-11-25T21:10:19.111Z\",\"publisher\":{\"@id\":\"https://docs.nerves-hub.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nerves-hub.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NervesHub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NervesHub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/setup/connecting.md","siteName":"NervesHub","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Quickstart: your first OTA update","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Architecture","sidebarTitle":"Architecture","href":"/architecture"},{"title":"Terminology","sidebarTitle":"Terminology","href":"/terminology"}]},{"group":"Guides","pages":[{"title":"Basic Nerves device setup","sidebarTitle":"Basic device setup","href":"/guides/basic-device-setup"},{"title":"Complete Nerves device setup","sidebarTitle":"Complete device setup","href":"/guides/complete-device-setup"},{"title":"Basic fleet operations","sidebarTitle":"Basic fleet operations","href":"/guides/basic-fleet-operations"},{"title":"Complete fleet operations","sidebarTitle":"Complete fleet operations","href":"/guides/complete-fleet-operations"}]},{"group":"Setup","pages":[{"title":"Add NervesHubLink to a project","sidebarTitle":"Add to project","description":"Add the nerves_hub_link dependency to a Nerves project, choose how the device authenticates, and check that it connects.","href":"/setup/add-to-project"},{"title":"Connecting devices","sidebarTitle":"Connecting","href":"/setup/connecting"},{"title":"Create and manage products","sidebarTitle":"Products","description":"Create a product, find its settings, and understand what deleting it does.","href":"/setup/products"},{"title":"Register and manage devices","sidebarTitle":"Devices","href":"/setup/devices"},{"title":"Build, sign, and upload firmware","sidebarTitle":"Firmware","href":"/setup/firmware"},{"title":"Create and activate deployment groups","sidebarTitle":"Deployment groups","href":"/setup/deployments"}]},{"group":"Device Authentication","pages":[{"title":"Shared secret authentication","sidebarTitle":"Shared secret","href":"/auth/shared-secret"},{"title":"X.509 device certificates","sidebarTitle":"Device certificates","href":"/auth/device-certificates"},{"title":"NervesKey","sidebarTitle":"NervesKey","href":"/auth/nerveskey"},{"title":"TPM","sidebarTitle":"TPM","href":"/auth/tpm"},{"title":"Just-in-time provisioning","sidebarTitle":"Just-in-time provisioning","href":"/auth/just-in-time-provisioning"},{"title":"Security: PKI and the chain of trust","sidebarTitle":"Security overview","href":"/concepts/pki"}]},{"group":"Device Connection","pages":[{"title":"Connection transport","sidebarTitle":"Transport","href":"/connection/transport"},{"title":"Connection lifecycle","sidebarTitle":"Lifecycle","href":"/connection/lifecycle"}]},{"group":"Firmware Updates","pages":[{"title":"How firmware updates work","sidebarTitle":"Overview","href":"/updates/overview"},{"title":"Firmware signing","sidebarTitle":"fwup signing","href":"/concepts/firmware-signing"},{"title":"Delta updates","sidebarTitle":"fwup delta updates","href":"/management/delta-updates"},{"title":"RAUC bundles","sidebarTitle":"RAUC","href":"/updates/rauc"},{"title":"ESP-IDF application images","sidebarTitle":"ESP-IDF","href":"/updates/esp-idf"},{"title":"AtomVM packbeam archives","sidebarTitle":"AtomVM","href":"/updates/atomvm"},{"title":"Applying updates on the device","sidebarTitle":"Applying updates","href":"/updates/applying-updates"},{"title":"Download strategies","sidebarTitle":"Download strategies","href":"/updates/download-strategies"},{"title":"Device-managed updates","sidebarTitle":"Device-managed updates","href":"/updates/device-managed-updates"},{"title":"Archives","sidebarTitle":"Archives","href":"/updates/archives"}]},{"group":"Deployments","pages":[{"title":"Releases","sidebarTitle":"Releases","href":"/deployments/releases"},{"title":"Rollout controls","sidebarTitle":"Rollout controls","href":"/deployments/rollout-controls"},{"title":"Connecting code","sidebarTitle":"Connecting code","href":"/deployments/connecting-code"},{"title":"Deployment workflows","sidebarTitle":"Deployment workflows","href":"/concepts/deployment-workflows"}]},{"group":"Extensions","pages":[{"title":"Extensions overview","sidebarTitle":"Overview","href":"/extensions/overview"},{"title":"Health extension","sidebarTitle":"Health","href":"/extensions/health"},{"title":"Geo extension","sidebarTitle":"Geo","href":"/extensions/geo"},{"title":"Logging extension","sidebarTitle":"Logging","href":"/extensions/logging"},{"title":"Error reports extension","sidebarTitle":"Error reports","href":"/extensions/error-reports"},{"title":"Local shell extension","sidebarTitle":"Local shell","href":"/extensions/local-shell"},{"title":"Network identity extension","sidebarTitle":"Network identity","href":"/extensions/network-identity"},{"title":"Metrics and Alarms extensions","sidebarTitle":"Metrics and alarms","href":"/extensions/metrics-and-alarms"}]},{"group":"Device Management","pages":[{"title":"Fleet overview","sidebarTitle":"Fleet overview","href":"/management/fleet-overview"},{"title":"Finding devices","sidebarTitle":"Finding devices","href":"/management/finding-devices"},{"title":"Remote console","sidebarTitle":"Remote console","href":"/management/remote-console"},{"title":"Support scripts","sidebarTitle":"Support scripts","href":"/management/support-scripts"},{"title":"Health monitoring","sidebarTitle":"Health monitoring","href":"/management/health-monitoring"},{"title":"Insights and history","sidebarTitle":"Insights and history","href":"/management/insights"},{"title":"Product notifications","sidebarTitle":"Notifications","href":"/management/notifications"},{"title":"Devices that sleep","sidebarTitle":"Sleeping devices","href":"/management/sleeping-devices"}]},{"group":"Organization and Access","pages":[{"title":"Roles and permissions","sidebarTitle":"Roles","href":"/access/roles"},{"title":"Two-factor authentication","sidebarTitle":"Two-factor authentication","href":"/access/two-factor"},{"title":"Audit log","sidebarTitle":"Audit log","href":"/access/audit-log"}]},{"group":"Connect Your Systems","pages":[{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/outbound/webhooks"},{"title":"Slack","sidebarTitle":"Slack","href":"/outbound/slack"},{"title":"Microsoft Teams","sidebarTitle":"Microsoft Teams","href":"/outbound/teams"},{"title":"Discord","sidebarTitle":"Discord","href":"/outbound/discord"},{"title":"Event stream","sidebarTitle":"Event stream","href":"/outbound/event-stream"},{"title":"CI and automation","sidebarTitle":"CI/CD","href":"/outbound/ci-cd"}]},{"group":"Self-hosting","pages":[{"title":"Feature prerequisites for a self-hosted instance","sidebarTitle":"Feature prerequisites","href":"/hosting/feature-prerequisites"},{"title":"ClickHouse for a self-hosted instance","sidebarTitle":"ClickHouse","href":"/hosting/clickhouse"},{"title":"Create a Slack app for your instance","sidebarTitle":"Slack app","href":"/hosting/slack-app"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/installation"}]},{"tab":"HTTP API","pages":[{"title":"HTTP API","href":"/api/overview"}]},{"tab":"Device API","pages":[{"title":"Device API","href":"/device-api/websocket-overview"}]}]},"basePath":"","title":"Connecting devices - NervesHub","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}