IOT - Bosch
  • Introduction
  • Devices
    • Bosch XDK 110
      • Introduction
      • Operating System
      • Hardware
        • Sensors
          • Accelerometer
            • C
          • Gyroscope
            • C
            • Mita
          • Magnetometer
            • C
          • Environmental
            • C
            • Mita
          • Ambient Light
            • C
            • Mita
          • Acoustic
            • C
      • Software
        • XDK WorkSpace
          • Structure
          • Debug
          • Supported languages
            • C
              • Static Library (.a)
            • XDK Live - Mita
            • MicroFlo
      • Connectivity
        • Bluetooth Low Energy (BLE)
          • Overview
          • General Info
          • Implementation
            • C
            • XDK Live
        • WI-FI
          • OverView
          • Implementation
            • C
            • XDK Live
        • WI-FI Enterprise
      • Protocols
        • CoAP
          • Overview
          • Implementation -TBD
        • HTTP
          • Overview
          • Structure and Methods
          • Implementation
            • C - Rest
            • C - Post
            • XDK Live
        • HTTPS
          • Overview
          • Implementation TBD
        • LWM2M
          • Overview
          • Implementation TBD
        • MQTT
          • Overview
          • Implementation
            • C
            • XDK Live
        • USB
          • Overview
          • Implementation TBD
      • Data Storage
      • XDK Extension Bus
      • Community
      • Applications
        • Language C
          • HomeAssitant - MQTT
            • Prerequisites
            • Server
            • Device
          • IOTA-MQTT-XDK
            • Prerequisites
            • XDK110
            • Mqtt JSON to MAM
            • SensorHub
            • Demo
        • Language XDK Live
          • MQTT
            • Hello World
            • HomeAssistant
              • Prerequisites
              • Server
              • Device
            • Docker-HomeAssistant
          • HTTP
            • Roku Remote Control
              • Roku API
              • MITA
                • Example
    • Bosch AMRA
    • Bosch GLM 100C
    • Bosch FLEXIDOME IP panoramic
    • Bosch GLM 100C
    • Bosch Rexroth Nexo
    • Bosch Rexroth PRC 7000
    • Bosch RRC / CT100
    • Bosch Rexroth IoT Gateway
  • Bosch IOT Solutions
    • Bosch IOT Projects
      • Smart Home
      • Industry 4.0
      • Smart Cities
      • Connected-mobility
    • Bosch IOT Suite
      • Bosch Analytics
      • Bosch IOT Hub
      • Bosch Iot Permission
      • IoT Remote Manager
      • IoT Rollouts
      • IoT Things
      • Demo TBD **
    • BPM and BRM
  • IOTA
    • Introduction
      • Tangle
      • Glossary
      • Differences with other tech
      • How does iota work
      • Developers
    • Qubic
      • What is Qubic?
      • Target
      • Qubic Protocol
    • Ecosystem
    • Applications
      • Python
      • XDK110
        • Prerequisites
        • XDK110
        • Mqtt JSON to MAM
        • SensorHub
    • Bosch/IOTA
  • ByteBall
    • SmartContract
    • Use Case
      • BoshCoins
Powered by GitBook
On this page
  • WPA with DHCP
  • WPA with static IP

Was this helpful?

  1. Devices
  2. Bosch XDK 110
  3. Connectivity
  4. WI-FI
  5. Implementation

XDK Live

Mita provides the possibility to create a Wi-Fi resource. If the configuration and implementation provided by the Mita implementation are insufficient for a certain purpose, it is recommended to make adapting changes in the generated C code.

In Mita, WLAN is defined as a named singleton resource. That means, there can only be one instance of the WLAN resource set up, and the name can be specified by the developer.

connectivity named-singleton WLAN {
    generator "org.eclipse.mita.platform.xdk110.connectivity.WlanGenerator"
    validator "org.eclipse.mita.platform.xdk110.connectivity.WlanValidator"

    /**
     * Choose personal WPA connection or Enterprise WPA connection
     */    
    required configuration-item authentification : Authentification

    /**
     * The SSID of the WLAN network we want to connect to
     */
    required configuration-item ssid : string

    /**
     * If true server certificate will be uploaded to the WiFi chip CC3100. 
     * Make sure to update service pack of the WiFi and then upload the certificate.
     * Certificate must placed under XDK110/common/certs/XDKDummy.
     */
    configuration-item isHostPgmEnabled : bool = false

    /**
     * Configure IP address and network via DHCP or static 
     */
    configuration-item ipConfiguration : IpConfiguration = Dhcp()
}
  • The connection type Personal represents WPA.

WPA with DHCP

Mita implementation uses DHCP per default.

setup myWifiResource : WLAN {
    connection = Personal(psk = "myPassword");
    ssid = "mySSID";
}

WPA with static IP

To create a WLAN Resource, the configuration item useDHCP must be set to false and the configuration items for static IP settings staticDNS, staticGW, staticIPand staticMask become mandatory. That aside, the connection type, the SSID, and the PSK must be set as well.

setup myWifiResource : WLAN {
    ssid = "mySSID";
    connection = Personal(psk = "myPassword");
    useDHCP = false;
  staticIP =        "192.168.1.2";      // Device IP address
    staticDNS =     "192.168.1.2";      // DNS Server address
    staticGW =      "192.168.1.1";      // Gateway address
    staticMask =    "255.255.255.0";    // subnet mask
}

**** Note ****

The Mita Wi-Fi implementation does not yet offer functionality for scanning for networks, disconnecting and automatic reconnecting. It only connects once to the specified single Wi-Fi network.

PreviousCNextWI-FI Enterprise

Last updated 5 years ago

Was this helpful?