Monogoto
Back to Monogoto website
  • Welcome
  • Getting Started
    • Quick Start
    • Device Configurations
      • IoT Modules
        • NORDIC nRF9160 DK
        • Quectel BG95-MX
        • Quectel BG96
        • Murata LBAD0XX1SC-DM
          • Satellite NTN Network
        • Sierra Wireless WP7607
        • Sierra Wireless WP7610
        • Sierra Wireless MC7700
        • SIMCom SIM7070G
          • Waveshare SIM7070G
        • SIMCom SIM7600G-H
          • Waveshare SIM7600G-H
        • Telit HE910
        • Thales Cinterion TX62
        • u-blox SARA R4
          • SODAQ SARA R41XM
        • Cellular Devices
          • Openwrt EG95
          • ProView 4GPro-W
          • Teltonika RUT240
          • Teltonika FMB920
          • InHand IR302
          • Provision-ISR PR-LTE01W
          • Sierra Wireless RV50 AirLink
          • Smart Cash Register Configuration to Use Cellular SIM as WiFi Backup
          • Nayax Nova 40
      • iPhone Device
      • Android Device
      • Raspberry Pi
    • Monogoto SIM
      • IoT SIM card
      • Embedded SIM
      • eSIM
      • iSIM
        • Murata LBAD0XX1SC
        • Quectel BG770A-SN
      • SGP.32
        • Kigen Pulse
      • Monogoto SIM Tool Kit (MTK)
    • Cellular Identities in Monogoto
    • Coverage Lists
      • Identity B Coverage
      • Identity C Coverage
      • Identity E Coverage
      • Identity F Coverage
      • Identity P Coverage
      • Identity U Coverage
      • NTN Satellite Coverage
      • LP-WAN Coverage
    • Features List
    • Community Forum
  • FAQ
  • Hub
    • Intro
      • Signup
      • Login
      • Logout
      • Users
        • Create a new user
        • Delete a user
        • Manage users
        • User password reset
      • General Elements
    • Dashboards
      • Active SIMs and Data Usage
        • Daily Active Things
        • Daily Data Usage
        • Top Consuming Things
        • Top Profiles in Use
        • Top Groups by Data Usage
        • Top Networks by Data Usage
        • Top Groups by Active Things
        • Top Networks by Active Things
      • Data Flows
        • Data Transfer
        • Top Destinations
        • Breakout
        • Services
        • Protocols
        • TCP Flags
        • Top Things (upload/download)
    • Things
      • Thing details
        • Understanding OPLMN and FPLMN on the Thing details page
      • Quality of Service
        • Thing QoS tests for public connectivity
        • Thing QoS monitoring for private connectivity
      • SMS
        • Incoming SMS
        • Outgoing SMS
        • SMS Monitoring
      • Location Service
      • NetFlow
    • Campaigns
      • Campaigns Table
      • Campaign Details
      • SMS Campaign
    • Private Networks
      • Backhaul
      • Edge
        • Edge Events
          • Time
          • Messages
          • msg-type
          • Node
          • Direction
          • Interface
          • Type
      • Radio
    • Inbox
    • Integrations
      • Slack
      • Zapier
      • Webhook
        • Webhook CDRs
          • Webhook SMS CDR
          • Webhook DATA CDR
      • Email
    • Captures
      • Basics on How to Read a Packet Capture File
    • Orders
      • Create a new order
    • Payments
  • Advanced Console
    • Intro
    • Security
    • Network
      • Create new Network
      • Edit Network Settings
      • Apply Network Settings
      • Delete Network
      • Add Network NAT
      • Edit Network NAT
      • Delete Network NAT
      • Add Network Route
      • Edit Network Route
      • Delete Network Route
      • Add Network VPN
      • Network VPN status
      • Edit Network VPN
      • Delete Network VPN
      • Download Network VPN configuration
      • Reconnect Network VPN
      • Ping Network VPN
      • How Devices in The Same Network Can Communicate with Each Other?
    • Things Groups
      • Create Things Group
      • Assign Things to Group
      • Edit Things Group
      • Delete Things Group
      • Override Roaming Policy
    • Things
      • Define Thing Status
      • Edit Things Details
      • Refresh Connection
    • Alerts
      • Alert Metrics (types)
      • Create New Alert
      • Disable/Enable Alert
      • Edit Alert
      • Delete Alert
    • Global Pools
    • Price Plans
    • Webhooks
      • Outgoing (MO) SMS Webhook
      • Incoming (MT) SMS Webhook
      • Outgoing (MO) Voice Webhook
      • Incoming (MT) Voice Webhook
      • Triggered Alert Webhook
  • Developer
    • API
      • Authentication
      • Things
        • Get Things List
        • Get Thing Information
        • Get Thing State
        • Update Thing State
        • Update Thing Name
        • Update Thing Description
        • Get Thing Data Session Status
        • Get Thing ICCID using IMSI
        • Get Thing Lifetime Data Usage
        • Get Thing Events Logs
        • Ping Thing IP Address
        • Lock Thing to IMEI
        • Download Thing PCAP File
        • Refresh Thing Network Connection
        • Get Things Services Usage Report
      • Things Groups
        • Get Things Group List
        • Move Thing to Different Things Group
        • Get Things Group Information
        • Lock Things Group to IMEI range (TAC)
      • eSIM
        • Get an eSIM
        • Cancel an eSIM
        • Download an eSIM
      • Alerts
        • Get Triggered Alerts
      • SMS
        • Check if MT SMS was Received
        • Send SMS to Thing
      • Pricing
        • Get Pricing Plan Information
      • Get Roaming Policy
    • Cloud Integrations
      • AWS IoT Core
      • Ubidots
  • Private Networks
    • Intro
      • Getting Started
      • Spectrum Allocation
    • Monogoto Edge
      • 4G Edge Components
      • 5G Edge Components
      • Edge NUC
      • Edge API
        • Authentication
        • Get Edge Configuration
        • Get Edge ID
        • Get Edge CID
        • Get MME S6A And AMF AUSF Status
        • Get Radio List
        • Get Subscriber Information
        • Get Subscription Status
        • Patch Subscription Status
        • Get IMSI IP Mapping
        • Patch IMSI IP Mapping
        • Delete IMSI IP Mapping
        • Get PLMN
        • Post PLMN
        • Get Network Operator Name
        • Patch Network Operator Name
        • Get APN
        • Get APN IP Pool Mapping
        • Get CDR Logs
        • Post PING
        • Get iperf
        • Patch iperf
        • Get Speed Test
        • Get Data Speed
        • Get Capture
        • Post Capture
    • eNodeB
      • Airspan AirVelocity 1500
      • Baicells Nova 227
      • Baicells Nova 442i
      • Baicells Neutrino 430
      • Baicells Nova 230i
      • BreezeCOMPACT 1000
      • Foxconn T99B226
      • Ubiik goRAN
      • Ubiik FreeRAN
      • T&W N02008
      • Mosolabs SCE4255W
      • Mosolabs SCO4255P
    • gNodeB
      • Mosolabs SCE5164
      • Baicells Stellar 227
    • CPE & UE
      • Airspan AirSpot 5410
      • Sierra Wireless EM7565
      • DG505G CBRS 5G USB Dongle
      • DG10 CBRS USB Dongle
      • D-Link DWP-1010W CPE
      • D-Link DWM-311-G 5G M2M
      • D-Link G530 Router
      • IPC SCB800 CBRS Camera
      • Telit LM960A9-P
      • Moxa 5G CCG-1510-US-T
      • InHand 5G ODU2000
      • Peplink MAX BR1 Mini 5G
      • T&W 5G Router
      • Telit LM960A18
      • Baicells EG7010C-M11 CPE
      • Baicells EG7035E-M11 CPE
      • Baicells EG8015G-M11 CPE
      • Telrad 9000 CPE
      • SRW620 CPE
      • Amit IDG500-0GT01
      • Jacs TD0231 Router
  • NTN Satellite Networks
    • NTN Satellite Coverage
    • NTN Billing
    • NB-IoT: Signaling NIDD vs IP Connectivity
    • VPNs in NTN
    • UDP Communication in NTN
    • How to Order NTN Developer Kit?
    • NTN Certified Devices
      • NTN Certified Modules
        • Murata LBAD0XX1SC-DM Satellite NTN Network
        • Quectel BG95-S5 Satellite NTN Network
        • Quectel BG770A-SN Satellite NTN Network
        • Quectel CC660D-LS Satellite NTN Network
        • SIMCom 7070G-HP-S Satellite NTN Network
        • Murata ALT1250 Satellite NTN Network
      • NTN Certified Chipsets
  • University
    • AT Commands
      • What AT Commands Should I Use to Debug a Connectivity Issue?
      • How to Send AT Commands to a Teltonika Router?
    • LTE bands
    • RAT Type (Radio Access Technology)
    • Low Power Modes: eDRX & PSM
    • What is MCC/MNC?
    • Glossary
Powered by GitBook
On this page
  • Quick Navigation
  • Prerequisites
  • Set up your Ubidots account
  • Send data using UDP
  • 1. Create UDP socket
  • 2. Connect socket
  • 3. Send UDP data
  • Send data using HTTP
  • 1. Set the HTTP base url
  • 2. Set custom headers
  • 3. Create a JSON file containing the data you want to send
  • 4. Send data
  • Useful links

Was this helpful?

  1. Developer
  2. Cloud Integrations

Ubidots

Integrate IoT data with Ubidots

PreviousAWS IoT CoreNextPrivate Networks

Last updated 2 years ago

Was this helpful?

is an IoT platform, allowing IoT developers to rapidly assemble and launch applications without having to write complicated code. It supports multiple protocols to integrate data, including UDP, TCP, HTTP(S) and MQTT.

Quick Navigation

Prerequisites

  • Monogoto SIM

  • Access to an IoT modem

  • Account on Ubidots

Set up your Ubidots account

You can get started with Ubidots free of charge by .

In order to send data to Ubidots, you need the following parameters to create the data string:

  • Ubidots Token starting with BBFF e.g. BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123 You can find your token when selecting your profile in the top-right corner and select API Credentials.

  • User agent You can think of name that will help you identify the IoT application you are working on, e.g. iotfleet1

  • Device Label e.g. iot-sensor The device label is the name of your device as registered in Ubidots. Visit your Devices page in the Ubidots console, and select the + sign at the top right corner to add a new device and provide its name.

Send data using UDP

The example below is created for the u-blox SARA R412 modem. When using a different IoT modem, have a look at the AT Commands manual of your modem vendor as the commands might slightly differ.

In order to send data using UDP, 3 AT Commands needs to be sent:

  1. Create UDP socket AT+USOCR

  2. Connect socket AT+USOCO

  3. Send UDP data AT+USOST

1. Create UDP socket

AT Command:AT+USOCR=<protocol> Replace <protocol> with 17 for UDP, use 6 for TCP.

AT+USOCR=17

Example response: +USOCR: 0

2. Connect socket

AT Command:AT+USOCO=<socket>,"<remote_addr>",<remote_port>

  • Replace <socket> with an identifier, e.g. 0

  • Replace <remote_addr> with Ubidots' IP address or domain name: 169.55.61.243, or industrial.api.ubidots.com

  • Replace <remote_port> with 9012 (no TLS) or 9812 (TLS)

To connect your IoT modem to Ubidots without TLS, use the following command:

AT+USOCO=0,"169.55.61.243",9012

Expected response: OK

3. Send UDP data

In order to send data to Ubidots, you need the following parameters to create the data string:

  • User agent, e.g. iotfleet1

  • Ubidots Token e.g. BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123

  • Device Label e.g. iotsensor

  • Variable Label e.g. temperature

  • Value e.g. 21

To send data to Ubidots, a data string needs to be created with all the parameters discussed above:

{user agent}|POST|{token}|{device label}=>{variable label}:{value}|end

For example:

iotfleet1|POST|BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123|iotsensor=>temperature:21|end

AT Command The AT Command to send UDP data is:

AT+USOST=<socket>,"<remote_addr>",<remote_port>,<length>,"<data>"

When adding all the parameters to the AT Command, the command becomes:

AT+USOST=0,"169.55.61.243",9012,80,"iotfleet1|POST|BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123|iotsensor=>temperature:21|end"

Expected response: +USOST: 0,80

Make sure to exactly count the number of characters you send, or you will receive an error.

If all went well, the Ubidots platform will visualize and store your data:

Send data using HTTP

The example below is created for the u-blox SARA R412 modem. When using a different IoT modem, have a look at the AT Commands manual of your modem vendor as the commands might slightly differ.

In order to send data using HTTP, 4 AT Commands needs to be sent:

  1. Set the HTTP base url AT+UHTTP

  2. Set custom headers AT+UHTTP

  3. Create a JSON file containing the data you want to send AT+UDWNFILE

  4. Send data AT+UHTTPC

1. Set the HTTP base url

AT Command:

AT+UHTTP=<profile_id>,1,"<param_val>"
  • Replace <profile_id> with an identifier, e.g. 0

  • Replace <param_val> with Ubidots' IP address or domain name: industrial.api.ubidots.com

The AT Command becomes:

AT+UHTTP=0,1,"industrial.api.ubidots.com"

To test if the base url was set correctly, enter: AT+UHTTP=0,1. Expected response:

+UHTTP: 0,1,"industrial.api.ubidots.com"
OK

2. Set custom headers

AT Command:

AT+UHTTP=<profile_id>,0,"<param_val>"
  • Replace <profile_id> with the same identifier you used before, e.g. 0

  • Replace <param_val> with a counter, going up for each new header you set, followed by the custom header, e.g. "0:X-Auth-Token:BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123"

Set the first header, containing the Ubidots authentication token:

AT+UHTTP=0,9,"0:X-Auth-Token:BBFF-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123"

The second header, contains the content type JSON:

AT+UHTTP=0,9,"1:Content-Type:application/json"

3. Create a JSON file containing the data you want to send

AT Command:

AT+UDWNFILE="<file_name>",<size>
  • Replace <file_name> with any name, e.g. sensordata.json

  • Replace <size> with the exact number of characters in the file.

To create a new file with 49 characters, called sensordata.json and add the sensordata, for example: {"temperature": 19,"humidity": 90,"pressure": 78}

AT+UDWNFILE="sensordata.json",49
> {"temperature": 19,"humidity": 90,"pressure": 78}

Read the contents of the file you just created:

AT+URDFILE="sensordata.json"

4. Send data

AT Command:

AT+UHTTPC=<profile_id>,4,"<url path>","<responseFilename>","<filesystemName>",4
  • Replace <profile_id> with the same identifier you used before, e.g. 0

  • Replace <url path> starting with /, e.g. /api/v1.6/devices/{Device Label}

  • Replace <responseFilename> with any name to store the server response, e.g. data.txt

  • Replace <filesystemName> with the file containing the data you want to send, e.g. sensordata.json

For example:

AT+UHTTPC=0,4,"/api/v1.6/devices/iotsensor","data.txt","sensordata.json",4

Expected response: +UUHTTPCR: 0,4,1

If the message was sent correctly, the Ubidots platform will visualize and store your data.

Optionally, delete the created file so you can recreate it when collecting new sensordata:

AT+UDELFILE="sensordata.json"

Useful links

Detailed information about using UDP to integrate data, see the .

Detailed information about using HTTP(S) to integrate data, see the .

Ubidots API documentation
Ubidots API documentation
Ubidots API documentation
Ubidots docs on UDP/TCP
Ubidots
signing up for a STEM account
Set up your Ubidots account
Send data using UDP
Send data using HTTP