Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Data shown on Server by Arduino connected via Ethernet #1890

Open
shaheenk94 opened this issue Nov 13, 2018 · 1 comment
Open

No Data shown on Server by Arduino connected via Ethernet #1890

shaheenk94 opened this issue Nov 13, 2018 · 1 comment

Comments

@shaheenk94
Copy link

#1802

Description:
While enrolling Arduino device on WSO2 IoT server, I made necessary(WiFi to Ethernet connection) changes in the sketch that I downloaded from the server and uploaded it. The following message was seen on the Serial Monitor:

Internal Temperature Sensor
My IP: 192.168.1.166
Host: 192.168.1.57:9443
JSON Payload: {"event":{"metaData":{"owner":"admin@carbon.super","deviceId":"1iepgvrk0whtf"}, "payloadData":{
-------------------------------
connected
Temperature is
34.99
POST /endpoints/arduino_receiver?deviceId=1iepgvrk0whtf HTTP/1.1
Host: 192.168.1.57:9443
Content-Type: application/json
Content-Length: 117

{"event":{"metaData":{"owner":"admin@carbon.super","deviceId":"1iepgvrk0whtf"}, "payloadData":{"temperature":34.99}}}
���
-------------------------------
connected
Read Controls
Started..
GET /arduino/device/1iepgvrk0whtf/controls HTTP/1.1
Host: 192.168.1.57:9443
Content-Type: application/json
 
 ���

Ended..
Polling Response: ���
-------------------------------
My IP: 192.168.1.166

There is no message(no Error, no Warning, no Connected message) from IoT-Server.

Affected Product Version:
WSO2 IoT Server 3.3.0
Oracle JAVA 1.8.0_181

OS, DB, other environment details and versions:
Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-131-generic x86_64)
Arduino IDE 1.8.7
Ethernet Library

Steps to reproduce:

  1. mvn clean install -f ./wso2iot-3.3.0/samples/device-plugins-deployer.xml
  2. ./wso2iot-3.3.0/scripts/change-ip.sh
  3. From "localhost" to "192.168.1.57"
  4. Start the server
    ./wso2iot-3.3.0/bin/broker.sh
    ./wso2iot-3.3.0/bin/iot-server.sh
    ./wso2iot-3.3.0/bin/analytics.sh
  5. Login to IoT Server (https://192.168.1.57:9443/devicemgt) with "admin"/"admin"
  6. Enroll device with type Arduino with name "Arduino"
  7. Download archive with firmware. Unzip it.
  8. In all files, code changed for Ethernet.
  9. Uploaded it to Arduino Uno with Ethernet Shield.
  10. Power on Arduino.
@stale
Copy link

stale bot commented Nov 23, 2018

This issue has been automatically marked as stale because it has not had recent activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant