Merge pull request #830 from charithag/master

Fixed https://github.com/wso2/product-iots/issues/1423
revert-dabc3590
Ruwan 7 years ago committed by GitHub
commit 892be7308f

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

Loading…
Cancel
Save