This is a simple example demonstrating how to use the Azande Library together with a WiFi Shield or a MKR1000.

Arduinos with WINC1500 Wi-Fi Module

This example is designed for Arduino systems using the WINC1500 Wi-Fi Module.

Example devices:

- MKR1000

Arduino WiFi Shield 101

WiFi101 Library

This example requires that you have the WiFi101 library installed.

This WiFi101 Library allows you to use the Arduino WiFi Shield 101 and the MKR1000 board.

More info about WiFi101 Library



Your Configuration

To be able to run the example you need to enter your own configurations in some places:

  • Configure Wi-Fi Network
  • Configure Socket Server Connection


Configure Wi-Fi Network

In the file arduino_secrets.h you need to specify following credentials for your Wi-Fi Network:



SECRET_SSID

Name of your Wi-Fi-Network.

SECRET_PASS

Password to your Wi-Fi-Network.


Configure Socket Server Connection

Start Azande Studio and start the socket server. Right click the server and you will see...



In the example code enter Host Name (or IP) and Port Number.


char myPcNetworkName[] = "ZEIJLON-SYSTEMS"; // Host Name

unsigned int azandeStudioServerPortNr = 41414;  // Port number


More info about Socket/LAN


Features

3 feature are implemented:

  • "Calculate Command": A Command Enum Feature that consists of 5 different enums.When user click a button in Azande Studio, corresponding enum-value is sent to the target.
    • Button "set 0": (enum-value=0) Sets VALUE to 0
    • Button "add 1": (enum-value=1) Add 1 to VALUE.
    • Button "sub 1": (enum-value=2) Subtract 1 from VALUE.
    • Button "mul 2": (enum-value=3) Multiply VALUE with 2.
    • Button "div 2": (enum-value=4) Divide VALUE with 2.
  • "Set Value Command": An Command Int32 Feature sent to Azande Studio. The event holds the new value for VALUE.
  • "Value Event": An Event Int32 Feature holds the VALUE. The Event is sent to Azande Studio every time VALUE is changed.


The circuit

No external hardware needed.

Azande Studio View





Downloads

The example is included in the Arduino Library.


Click here to access download of the Arduino Library