Completado

Make a PHP Function for HEX to JSON conversion of IoT data, per a variable data-formatting definition

a PHP function will take the first two characters to identify the nature of the data and use the rest of the data to parse values per the specific definition.

Given HEX data values (like 02000a670867350000010000 ),

*and* given an array definition of currently 17 different data types. the format to hold this information is TBD (currently on paper), but they will be something similar to this one example element:

02=

[name="messageName",

typedef = [

byte = ID,

byte = status,

int16 = value1,

int16 = value2,

int8 = other1,

int8 = other2,

int8 = other3,

uint8 = other4,

uint8 = other5,

uint8 = other6,

]

]

take the first 2 digits to determine the message type, then take the typedef of the data to cut the data into pieces which are then translated from HEX to decimal/text, which gets returned as a simple, flat JSON (the above will translate as follows):

{

"ID": "messageName",

"status: "0",

"value1": "102663",

"value2": "21.51",

"other1": "53",

"other2": "0",

"other3": "0",

"other4": "1",

"other5": "0",

"other6": "0"

}

Looking for a simple function which takes the data and returns the JSON will do. Important is that at any time new data definitions and data types may be added and error messages are generated in case the data does not satisfy the format.

Testing: a data set and a REST webservice is available to check the outcome of each value. Ie. the values should match the outcome of the REST service.

Habilidades: PHP

Ver más: Make a Presentation in powerpoint from the data given, json save data database php, json show data php mysql, using php json insert data database mysql, php library flv conversion, php library convert image cmyk, php function convert url html link, active directory php function, php function number format bilion milion, php function keywords extract, php code administrator monitoring edit data, web server php function, php convert hex color, php function validate post, php screen scrape example extract data, php library, php function convert http links, hex ascii conversion verilog code, php convert hex rgb, php function convert link

Información del empleador:
( 3 comentarios ) Utrecht, Netherlands

Nº del proyecto: #17236230

Adjudicado a:

Gabe777

You will receive a class that can take the definitions as config at initiation, and will have the method responsible for parsing the incoming data. Relevant Skills and Experience Please refer to my profile for detaile Más

$35 USD en 1 día
(4 comentarios)
3.1

8 freelancers están ofertando el promedio de $29 para este trabajo

liangjongai

I can work for you. I'm interested in your project. I've an experience of works with PHP. Ping me any time to discuss about this project.

$25 USD en 1 día
(225 comentarios)
7.5
$25 USD en 1 día
(100 comentarios)
6.2
$30 USD en 1 día
(68 comentarios)
5.6
$25 USD en 1 día
(22 comentarios)
4.7
businesstogether

Hello, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. I have 8+ years in web designing & development with good experience in following skil Más

$55 USD en 1 día
(5 comentarios)
4.4
AlexanderAksenov

Hello Sir. I've read your proposal. I am very interested in your project. I hope kind contact to discuss more. Best regards.

$25 USD en 1 día
(8 comentarios)
2.7
$10 USD en 1 día
(0 comentarios)
0.0