OkHttp Post Body as JSON

References https://stackoverflow.com/questions/34179922/okhttp-post-body-as-json

Continue reading »

Building a Url with Query parameters in OkHttp

References https://medium.com/square-corner-blog/okhttps-new-url-class-515460eea661

Continue reading »

Sort Java Strings in a Collection using Collator

References http://tutorials.jenkov.com/java-internationalization/collator.html https://stackoverflow.com/questions/16949074/sorting-arabic-words-in-java

Continue reading »

Spring CORS No ‘Access-Control-Allow-Origin’ header is present

Enabling CORS for the whole application is as simple as:

To enable CORS for the whole controller:

To enable CORS for the method: […]

Continue reading »

Java BACnet

Build.gradle

Read and Write Values

References https://github.com/infiniteautomation/BACnet4J https://www.csimn.com/CSI_pages/BACnet101.html https://github.com/openmucextensions/bacnet/wiki

Continue reading »

Java Modbus Client

Modbus TCP Client Example

Read an Write 32 Bit Values

References https://www.youtube.com/user/emileackbarali/videos https://www.udemy.com/the-1-hour-modbus-rs485-primer/ https://www.rtaautomation.com/technologies/modbus-rtu/ http://easymodbustcp.net/java-modbus-tcp-client-example http://easymodbustcp.net/java-read-an-write-32-bit-values https://en.wikipedia.org/wiki/Modbus

Continue reading »

Scheduling in Spring with Quartz

References http://www.baeldung.com/spring-quartz-schedule

Continue reading »

Modify Socket parameters of Mqtt Client

Continue reading »

Sort a list of objects by a certain value within the object

References https://stackoverflow.com/questions/9109890/android-java-how-to-sort-a-list-of-objects-by-a-certain-value-within-the-object

Continue reading »
1 2 3 9