pieterjm / JCosmAPI

Java API for cosm
4 stars 2 forks source link

Datapoint.java needs a minor change to upload #4

Closed troysnet closed 11 years ago

troysnet commented 11 years ago

I had to modify Datapoint.java and switch around the "at" and "value" attributes in order to successfully my uploaded data to display. Below is the change that I made.

public JSONObject toJSONObject() throws JSONException { JSONObject jo = new JSONObject(); jo.put("at", at); jo.put("value",value); return jo; }

troysnet commented 11 years ago

This was user error on my side.