Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
ethersex:ds2450 [2016/03/29 06:54] – t33kanne | ethersex:ds2450 [Unknown date] (aktuell) – Externe Bearbeitung (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== DS2450 ====== | ====== DS2450 ====== | ||
- | + | ===== Level 2 Überschrift ===== | |
* http:// | * http:// | ||
* http:// | * http:// | ||
Zeile 17: | Zeile 18: | ||
* http:// | * http:// | ||
+ | |||
+ | ===== Level 2 Überschrift ===== | ||
+ | |||
+ | * https:// | ||
+ | * http:// | ||
+ | |||
+ | \\ | ||
+ | **" | ||
+ | \\ | ||
+ | < | ||
+ | C6_HEADER(`/ | ||
+ | #include " | ||
+ | uint16_t counter1 = 0; | ||
+ | uint16_t var1 = 0; | ||
+ | CONTROL_START | ||
+ | CLOCK_USED() | ||
+ | |||
+ | THREAD(start) | ||
+ | var1 = 1; | ||
+ | WAIT(5) | ||
+ | var1 = 0; | ||
+ | WAIT(5) | ||
+ | THREAD_END(start) | ||
+ | |||
+ | TCP_HANDLER_PERSIST(message_handler); | ||
+ | if (var1 == 1){ | ||
+ | ow_rom_code_t rom_code; | ||
+ | uint16_t result; | ||
+ | rom_code.bytewise[0] = 0x20; | ||
+ | rom_code.bytewise[1] = 0x68; | ||
+ | rom_code.bytewise[2] = 0x64; | ||
+ | rom_code.bytewise[3] = 0x14; | ||
+ | rom_code.bytewise[4] = 0x00; | ||
+ | rom_code.bytewise[5] = 0x00; | ||
+ | rom_code.bytewise[6] = 0x00; | ||
+ | rom_code.bytewise[7] = 0xb5; | ||
+ | ow_ds2450_convert(& | ||
+ | ow_ds2450_get(& | ||
+ | TCP_SEND(" | ||
+ | WAIT(15) | ||
+ | } | ||
+ | TCP_HANDLER_END(); | ||
+ | |||
+ | ON STARTUP DO | ||
+ | THREAD_START(start) | ||
+ | TCP_CONNECT(192.168.123.106, | ||
+ | END | ||
+ | |||
+ | CONTROL_END | ||
+ | </ | ||
+ | |||
+ | Notiz für mich: ;) | ||
+ | |||
+ | < | ||
+ | C6_HEADER(`/ | ||
+ | #include " | ||
+ | |||
+ | uint16_t counter1 = 0; | ||
+ | uint16_t var1 = 0; | ||
+ | uint16_t var2 = 0; | ||
+ | uint16_t result; | ||
+ | |||
+ | CONTROL_START | ||
+ | CLOCK_USED() | ||
+ | |||
+ | THREAD(send) | ||
+ | ow_rom_code_t rom_code; | ||
+ | rom_code.bytewise[0] = 0x20; | ||
+ | rom_code.bytewise[1] = 0x68; | ||
+ | rom_code.bytewise[2] = 0x64; | ||
+ | rom_code.bytewise[3] = 0x14; | ||
+ | rom_code.bytewise[4] = 0x00; | ||
+ | rom_code.bytewise[5] = 0x00; | ||
+ | rom_code.bytewise[6] = 0x00; | ||
+ | rom_code.bytewise[7] = 0xb5; | ||
+ | ow_ds2450_convert(& | ||
+ | ow_ds2450_get(& | ||
+ | if (result < 1000) { | ||
+ | var2 = 1; | ||
+ | WAIT(10) | ||
+ | var2 = 0; | ||
+ | }else{ | ||
+ | var2 = 0; | ||
+ | } | ||
+ | WAIT(1) | ||
+ | THREAD_END(send) | ||
+ | |||
+ | TCP_HANDLER_PERSIST(message_handler); | ||
+ | if (var2 == 1){ | ||
+ | TCP_SEND(" | ||
+ | WAIT(1) | ||
+ | } | ||
+ | TCP_HANDLER_END(); | ||
+ | |||
+ | ON STARTUP DO | ||
+ | THREAD_START(send) | ||
+ | TCP_CONNECT(192.168.123.106, | ||
+ | END | ||
+ | |||
+ | CONTROL_END | ||
+ | </ | ||
+ | |||
+ |