Developer
Ask a QuestionBlecon WebsiteBlecon Console
  • Learn Blecon
    • Introduction
    • Blecon Modems
      • Device Identity and Network Security
      • Modem Firmware vs Modem Library
      • Using the Modem
      • Communicating with the cloud
      • Sending data from the cloud to a device
    • Blecon Hotspots
    • Blecon Networks
      • Blecon Accounts
      • Registering devices
        • The Blecon Scanner
        • Blecon Scanner Developer Guide
      • Blecon Events
      • Cloud Integrations
  • Cloud Integrations
    • Webhook
    • AWS S3
    • AWS SQS
    • AWS EventBridge
    • Memfault
  • Getting Started Guides
    • Getting started index
    • Install the Blecon Modem Firmware
    • Set up a Blecon Hotspot
    • Use Blecon from your computer with the Blecon CLI
    • Create a Network and register a device
    • Send device requests and events to your web service
    • Use Blecon from a Development Board
    • Use the Blecon Modem from an MCU
  • Device Guides
    • KKM S5-BCN
  • Development Board Guides
    • Supported Development Boards
    • Ezurio DVK-BL54L15
    • Fanstel EV-BM15C
    • InsightSiP ISP2454-LX-EB
    • Nordic nRF52840DK
    • Nordic nRF54L15DK
    • Minew ME54BE01
    • Panasonic PAN-B511 EVB
    • Raytac AN54L15Q-DB
    • u-Blox EVK-NORA-B20
  • Modem Reference
    • Modem Firmware Releases
      • nRF54L15 DK
      • nRF52840 Dongle
      • nRF52840 DK
    • CLI Releases
    • SDK Releases
    • Modem API Reference
    • Modem Protocol Reference
      • Request Frames
      • Command Protocol
      • UART Transport
    • Guides and best practices
      • Retrieve a device's identity
  • Cloud Reference
    • Configuration API
    • Advanced event routing
  • Hotspot Reference
    • Blecon Hub
Powered by GitBook

Get Support

  • Ask a question
On this page
  • Create a new network
  • Register a device on the network
  • Check network connectivity by sending a request
  • Next Steps
  1. Getting Started Guides

Create a Network and register a device

Making your first requests over Blecon

PreviousUse Blecon from your computer with the Blecon CLINextSend device requests and events to your web service

Last updated 1 month ago

In order for a Blecon device to communicate with your cloud application, it needs to be added to a Blecon . Blecon networks allow you to configure the handling of events generated by devices such as requests and messages.

This guide will show you how to create a Blecon network and add a device to that network.

Creating and configuring virtual networks requires a Blecon account. If you do not have a Blecon account, .

Create a new network

  1. Go to the and click the green "Create Network" button

  2. Give your network a name and click "Create Network"

  3. Once the network has been created, you will see the Network Information page for the network you just created. You can return to this page from the main Blecon Console page.

Register a device on the network

While there are different ways to let's follow the Console workflow for this getting started guide.

  1. Go to the Network Information page for the network you want to add your device to.

  2. Click the Use Scanner button and follow the prompts. You may want to follow a specific device getting started guide.

  3. When the device has been successfully added, you will see the Device Information page for that device. You can return to this page by selecting the Device ID under the "Devices" tab in the Network Information page.

Check network connectivity by sending a request

In order for this test to complete, make sure you have a Blecon hotspot set up nearby.

On your computer, use the request subcommand in the CLI to send a test message to the network.

The example below sends a four-byte message with values: 4b 1e c0 17

% ./blecon-cli request 4b1ec017
Waiting for connection...
Connected
Terminating connection
Response:

The CLI can convert text strings to binary for you

Blecon devices send data to the network as raw bytes but you can send text strings from the CLI using the-t option. The CLI will perform the conversion from text to binary (UTF-8).

For example:

./blecon-cli request -t "hello cloud!"

The modem reports it successfully connected to the network. Since you have not yet set up any routes to handle incoming device requests, there is no response returned.

You can confirm this is the case based on the network.routing_failed event in the "Recent Events" tab of the Network Information page:

Next Steps

Once you have registered your device, you can attempt to send a message to your network. You can do this with the and an attached Blecon modem.

network
create one now
Blecon Console
register a device,
Blecon CLI
Route device events to your web application