Skip to main content



      Home
Home » Eclipse Projects » Mita » Heap Issue when using EclipseMitaApplication with XDK(Heap Issue when using EclipseMitaApplication with XDK)
Heap Issue when using EclipseMitaApplication with XDK [message #1810135] Thu, 01 August 2019 02:56 Go to next message
Eclipse UserFriend
Hey,

when using Mita in combination with the XDK, I get an error message with:

INFO | XDK DEVICE 3: ----- HEAP ISSUE ----
INFO | XDK DEVICE 3: Error in ServalPAL package.
INFO | XDK DEVICE 3: Package ID: 30
INFO | XDK DEVICE 3: Module ID: 29
INFO | XDK DEVICE 3: Severity code: 2
INFO | XDK DEVICE 3: Error code: 13

I'm trying to read out all sensors and send the data using the EclipseMitaApplication preset.

Here's the full code if it helps.
https://gist.github.com/timgrossmann/651ff7f4e7be6b5757b94d55a7200c25

Thank you
- Tim
Re: Heap Issue when using EclipseMitaApplication with XDK [message #1810596 is a reply to message #1810135] Wed, 14 August 2019 02:37 Go to previous message
Eclipse UserFriend
All sensors besides the power status (battery), acoustics and connectivity (according to the Vorto Information Model) are now integrated.

However when adding one of the one mentioned above e.g. like this:

every 15 minutes {
	let ps = XDK110.powerStatus.read();
    where(ps) {
        is(PowerStatus.Battery -> level) {
        	let batteryPayload = `{
		     "topic": ".../.../things/twin/commands/modify",
		     "headers": { "response-required": "false" },
		     "path": "/features/battery/properties",
		     "value": {
		      "status": {
		      	"remainingCapacity":{
					"value":${level}
				},
				"value":{
					"currentMeasured": ${level},
					"minMeasured":2,6,
					"maxMeasured":3,2
				},
				"configuration": {
					"remainingCapacityAmpHour":2
			    }
			  }
		    }
		  }`;
		   
		  backend.telemetry.write(batteryPayload);
    	}   
	}
}


I instantly get a HEAP ISSUE after flashing...
Any ideas how I could avoid that?

Thanks
Next Topic:Example of Configuration reading from SD card
Goto Forum:
  


Current Time: Thu May 15 03:17:54 EDT 2025

Powered by FUDForum. Page generated in 0.03608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top