{"id":20563384,"url":"https://github.com/pilotak/wisol","last_synced_at":"2025-07-23T03:08:37.934Z","repository":{"id":91903497,"uuid":"281929883","full_name":"pilotak/wisol","owner":"pilotak","description":"Mbed library for Wisol WSSFM10 SigFox modem","archived":false,"fork":false,"pushed_at":"2020-09-14T20:23:37.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T08:20:46.568Z","etag":null,"topics":["mbed","sigfox","wisol","wssfm10"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pilotak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-23T11:12:37.000Z","updated_at":"2020-09-14T20:23:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"37132a96-4916-4b6b-a3e7-58b46a54500a","html_url":"https://github.com/pilotak/wisol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pilotak/wisol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fwisol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fwisol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fwisol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fwisol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/wisol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fwisol/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266609467,"owners_count":23955638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mbed","sigfox","wisol","wssfm10"],"created_at":"2024-11-16T04:17:59.530Z","updated_at":"2025-07-23T03:08:37.910Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mbed Wisol library\n\n[![Framework Badge mbed](https://img.shields.io/badge/framework-mbed-008fbe.svg)](https://os.mbed.com/)\n\nMbed library for Wisol WSSFM10 SigFox modem\n\n## Example\n```cpp\n#include \"mbed.h\"\n#include \"Wisol.h\"\n\nWisol wisol(PC_4, PC_5);\n\nint main() {\n    if (!wisol.init()) {\n        printf(\"Could not init\");\n        return 0;\n    }\n\n    uint8_t data[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C};\n\n    if (wisol.sendFrame(data, sizeof(data))) {\n        printf(\"Message sent!\\n\");\n\n    } else {\n        printf(\"Sending message failed\\n\");\n    }\n\n    return 0;\n}\n```\n\n## Detailed example\n`mbed_app.json`\n```json\n{\n  \"config\": {\n    \"trace-level\": {\n      \"help\": \"Options are TRACE_LEVEL_ERROR,TRACE_LEVEL_WARN,TRACE_LEVEL_INFO,TRACE_LEVEL_DEBUG\",\n      \"macro_name\": \"MBED_TRACE_MAX_LEVEL\",\n      \"value\": \"TRACE_LEVEL_DEBUG\"\n    }\n  },\n  \"target_overrides\": {\n    \"*\": {\n      \"mbed-trace.enable\": true,\n      \"target.printf_lib\": \"std\"\n    }\n  }\n}\n```\n`main.cpp`\n```cpp\n#include \"mbed.h\"\n#include \"Wisol.h\"\n\n#if MBED_CONF_MBED_TRACE_ENABLE\n#include \"mbed-trace/mbed_trace.h\"\nstatic Mutex trace_mutex;\n\nstatic void trace_wait() {\n    trace_mutex.lock();\n}\n\nstatic void trace_release() {\n    trace_mutex.unlock();\n}\n\nvoid trace_init() {\n    mbed_trace_init();\n    mbed_trace_mutex_wait_function_set(trace_wait);\n    mbed_trace_mutex_release_function_set(trace_release);\n}\n#endif\n\nWisol wisol(PC_4, PC_5);\n\nint main() {\n#if MBED_CONF_MBED_TRACE_ENABLE\n    trace_init();\n#endif\n\n    uint8_t data[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C};\n    uint8_t id[SIGFOX_ID_LENGTH];\n    uint8_t pac[SIGFOX_PAC_LENGTH];\n\n    if (!wisol.init(true)) {\n        printf(\"Could not init\");\n        return 0;\n    }\n\n    wisol.getId(id);\n    wisol.getPac(pac);\n    wisol.setTransmitRepeat(2);\n    wisol.sendFrame(data, sizeof(data));\n    wisol.getTemperature(nullptr);\n    wisol.getVoltage(nullptr, nullptr);\n\n    if (wisol.setPowerMode(Wisol::Sleep)) {\n        ThisThread::sleep_for(5s);\n        wisol.sendBreak();\n\n        while (!wisol.init(true)) {\n            ThisThread::sleep_for(250ms);\n        }\n    }\n\n    wisol.reset();\n\n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fwisol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fwisol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fwisol/lists"}