MQX RTCS configuration properties - mqx

Hi has anione worked with MQX ?
I do not know how to set BSP_ENET_DEVICE_COUNT in order to test the enet demo ...

you should look in the user_config.h and the board specific header file (e.g. TWRK60512.h for the k60 tower) for such settings. These can be found in the bsp library source.
Hope that helps!

Normally this is set on {MQX_ROOT_DIR}\mqx\source\bsp\"your_bsp_name"\"your_bsp_name".h
but you can set it on user_config.h too.

Related

Set custom timeout to Bluetooth-le write with Quasar-Framework/Capacitor

I'm using the Bluetooth-LE community plugin in a Quasar/Capacitor project.
Since version 1.7.0, we can make timeouts configurable. But how? I need help with the syntax. Can someone give me a fonctionnal example with a custom timeout.
Thank you.
I was also looking for that information. Haven't found any details on the documention but the file 'definitions.d.ts' inside the Bluetooth-LE module.
Try this :
const writeFlag = await BleClient.write(
device.deviceId,
SERV_SYSTEM_SETTINGS,
CHAR_RTC,
dvDateTime,
{timeout:(10000)} // <---- this is what you need
);

Set the RequestResponseSerializer in ElasticClient

We've seen a resurrection of this issue in a recent update of Elasticsearch (https://github.com/elastic/elasticsearch-net/issues/1937).
We set the SourceSerializer when creating the Client connection but that doesn't seem to help.
Debugging in, I see that RequestResponseSerializer defaults to Nest.InternalSerializer. This JSON serializer has the DateParseHandling field set to DateTime when we want DateTimeOffset. I suspect that this may be the cause of my problem.
Is there a way to set RequestResponseSerializer to verify my theory?
ADDITION: I was able to verify my theory above by altering the NEST code directly. I edited the InternalSerializer::CreateSettings() method to include DateParseHandling = DateParseHandling.DateTimeOffset and that solved the issue.
Now how to set/modify this value for RequestResponseSerializer without modifying NEST code directly...
Turns out my issue was the same as https://github.com/elastic/elasticsearch-net/issues/3164 and seemed to be fixed in v6.2.0 (https://github.com/elastic/elasticsearch-net/pull/3278).
I was running v6.1.0
Upgraded my version to v6.3.1 and all looks well.

Change the OpenFlow Configuration on Floodlight

I would like to find a way to set the miss_send_len on floodlight to 0xFFFD
i.e. translate the following POX line
self.connection.send(of.ofp_set_config(miss_send_len = 0xFFFD))
into floodlight.
As far as I know, this is done during the handshake between the controller and the switches through an OFSetConfig.
A Modification to
https://github.com/floodlight/floodlight/blob/master/src/main/java/net/floodlightcontroller/core/internal/OFSwitchHandshakeHandler.java#L1746 was enough to set the miss_send_len to 0xFFFD

How to set the system property max.retries in thucydides

I need to set the system property max.retries in thucydides. I need to rerun the failed test again in thucydides so that can be done by using max.retries. Can any one please guide me in this regard
Did you try setting it this way ?
System.setProperty("max.retries", 3);

Does Dojo Framework have the version set in it somewhere?

I have a copy of Dojo framework but i am not sure which version it is.
How can you tell? Surely it must be set as a value in it somewhere.
My downloaded folder looks like this:
dojo\
dijit\
dojo\
dojox\
util\
Following on from JW's answer above, it look like in Dojo 1.8 and 1.9 the dojo.version property is set in
dojo/_base/kernel.js
Look for the line starting with:
dojo.version =
aaah got it: its set in:
dojo\
dojo\
_base\
_loader\
bootstrap.js
dojo.version will give you the details of the exact version you're using.
Here is an example of the output:
>>> dojo.version;
0.0.0dev (15278) major=0 minor=0 patch=0 flag=dev revision=15278
>>> dojo.version.toString();
"0.0.0dev (15278)"