Merge pull request #830 from charithag/master

Fixed https://github.com/wso2/product-iots/issues/1423
This commit is contained in:
Ruwan 2017-09-22 11:13:42 +05:30 committed by GitHub
commit 892be7308f

View File

@ -74,8 +74,8 @@ public class EventReceiverServiceImpl implements EventReceiverService {
JsonObject jsonObject = gson.fromJson(eventPayload, JsonObject.class);
Object payload[] = {
jsonObject.get(TIME_STAMP).getAsLong(),
jsonObject.get(LONGITUDE).getAsDouble(),
jsonObject.get(LATITUDE).getAsDouble()
jsonObject.get(LATITUDE).getAsDouble(),
jsonObject.get(LONGITUDE).getAsDouble()
};
try {
if (AndroidAPIUtils.getEventPublisherService().publishEvent(